Skip to content

Commit 332829f

Browse files
authored
fix: Discord oauth2 missing "code_challenge" (#1440)
* fix: Discord oauth2 missing "code_challenge" * Update discord.ts
1 parent 9a32c7d commit 332829f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/providers/discord.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ export function discord(
1717
authorization: 'https://discord.com/api/oauth2/authorize',
1818
token: 'https://discord.com/api/oauth2/token',
1919
userInfo: 'https://discord.com/api/users/@me'
20+
// logout: 'https://discord.com/api/oauth2/token/revoke' //TODO: add post method, because discord using the post method to logout
2021
},
22+
grantType: 'authorization_code',
23+
codeChallengeMethod: 'S256',
2124
scope: ['identify', 'email']
2225
}
2326

0 commit comments

Comments
 (0)