Skip to content

Commit

Permalink
[providers]: Updating Discord provider domain (#590)
Browse files Browse the repository at this point in the history
Discord is migrating to discord.com, including their OAuth2 API routes. Support for the old domain, discordapp.com, will be dropped on 7 Nov 2020.

Note that the cdn.discordapp.com domain is unchanged. This is intentional, as the cdn domain will not be migrated due to technical restraints on Discord's side.
  • Loading branch information
PermissionError committed Aug 29, 2020
1 parent 5d4eb5d commit 43d8e3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/providers/discord.js
Expand Up @@ -6,10 +6,10 @@ export default (options) => {
version: '2.0',
scope: 'identify email',
params: { grant_type: 'authorization_code' },
accessTokenUrl: 'https://discordapp.com/api/oauth2/token',
accessTokenUrl: 'https://discord.com/api/oauth2/token',
authorizationUrl:
'https://discordapp.com/api/oauth2/authorize?response_type=code&prompt=consent',
profileUrl: 'https://discordapp.com/api/users/@me',
'https://discord.com/api/oauth2/authorize?response_type=code&prompt=consent',
profileUrl: 'https://discord.com/api/users/@me',
profile: (profile) => {
return {
id: profile.id,
Expand Down

1 comment on commit 43d8e3b

@vercel
Copy link

@vercel vercel bot commented on 43d8e3b Aug 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.