{"id":22115140,"url":"https://github.com/thegears/basic-discordoauth2","last_synced_at":"2025-07-25T09:31:57.786Z","repository":{"id":40655526,"uuid":"507870329","full_name":"thegears/basic-discordoauth2","owner":"thegears","description":"Basic Discord OAUTH2","archived":false,"fork":false,"pushed_at":"2022-06-27T10:57:27.000Z","size":2,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-14T11:09:34.473Z","etag":null,"topics":["discord","discordbasic","discordoauth","discordoauth2"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thegears.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-27T10:53:17.000Z","updated_at":"2022-07-19T12:12:22.000Z","dependencies_parsed_at":"2022-08-27T01:01:18.097Z","dependency_job_id":null,"html_url":"https://github.com/thegears/basic-discordoauth2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegears%2Fbasic-discordoauth2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegears%2Fbasic-discordoauth2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegears%2Fbasic-discordoauth2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegears%2Fbasic-discordoauth2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thegears","download_url":"https://codeload.github.com/thegears/basic-discordoauth2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227554355,"owners_count":17786132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discordbasic","discordoauth","discordoauth2"],"created_at":"2024-12-01T12:14:42.484Z","updated_at":"2024-12-01T12:14:43.131Z","avatar_url":"https://github.com/thegears.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic Discord OAUTH2\n\nExample Usage\n\n```js\nconst bdoa = require(\"basic-discordoauth2\");\nconst Auth = new bdoa.Auth({\n    clientId: \"client id\",\n    clientSecret: \"client secret\",\n    redirectUri: \"redirect uri\",\n    scopes: [\"identify\", \"guilds\"]\n});\n\n\n(async () =\u003e {\n\tlet token = await Auth.Token(\"code\");\n\tlet refreshToken = await Auth.RefreshToken(token.refresh_token);\n\n\tawait Auth.Guilds(refreshToken).then(a2 =\u003e {\n\t\tconsole.log(a2);\n\t});\n\n\trefreshToken = await Auth.RefreshToken(refreshToken.refresh_token);\n\n\tawait Auth.Me(refreshToken).then(a2 =\u003e {\n\t\tconsole.log(a2);\n\t});\n})();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthegears%2Fbasic-discordoauth2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthegears%2Fbasic-discordoauth2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthegears%2Fbasic-discordoauth2/lists"}