Skip to content

Commit

Permalink
fix: Discord oauth2 missing "code_challenge" (#1440)
Browse files Browse the repository at this point in the history
* fix: Discord oauth2 missing "code_challenge"

* Update discord.ts
  • Loading branch information
Intevel committed Jan 19, 2022
1 parent 9a32c7d commit 332829f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/providers/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export function discord(
authorization: 'https://discord.com/api/oauth2/authorize',
token: 'https://discord.com/api/oauth2/token',
userInfo: 'https://discord.com/api/users/@me'
// logout: 'https://discord.com/api/oauth2/token/revoke' //TODO: add post method, because discord using the post method to logout
},
grantType: 'authorization_code',
codeChallengeMethod: 'S256',
scope: ['identify', 'email']
}

Expand Down

0 comments on commit 332829f

Please sign in to comment.