Skip to content

Commit

Permalink
fix(driver:discord): authorization URLUpdate discord.ts (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjpitch23 authored Jun 1, 2024
1 parent 17468c6 commit 6bb90d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/drivers/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { Oauth2Driver } from '../abstract_drivers/oauth2.js'
*/
export class DiscordDriver extends Oauth2Driver<DiscordToken, DiscordScopes> {
protected accessTokenUrl = 'https://discord.com/api/oauth2/token'
protected authorizeUrl = 'https://discord.com/api/oauth2/authorize'
protected authorizeUrl = 'https://discord.com/oauth2/authorize'
protected userInfoUrl = 'https://discord.com/api/users/@me'

/**
Expand Down Expand Up @@ -82,6 +82,7 @@ export class DiscordDriver extends Oauth2Driver<DiscordToken, DiscordScopes> {

request.param('response_type', 'code')
request.param('grant_type', 'authorization_code')
request.param('integration_type', 1)

/**
* Define params based upon user config
Expand Down

0 comments on commit 6bb90d5

Please sign in to comment.