diff options
author | 2022-06-17 18:18:15 +0100 | |
---|---|---|
committer | 2022-06-17 18:18:15 +0100 | |
commit | 29c18c0c0dd347bba55c85bb9f5c80127b592eb5 (patch) | |
tree | a2a68ec9d574e14bd7c4493f4983ee02964db766 /src | |
parent | Merge pull request #432 from python-discord/dependabot/npm_and_yarn/dotenv-16... (diff) |
Prompt for OAuth2 consent on every auth flow
Closes #439
Diffstat (limited to 'src')
-rw-r--r-- | src/api/auth.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/auth.ts b/src/api/auth.ts index dd1f749..7f01b9d 100644 --- a/src/api/auth.ts +++ b/src/api/auth.ts @@ -105,7 +105,7 @@ export async function getDiscordCode(scopes: OAuthScopes[], disableFunction?: (d // Open login window const windowRef = window.open( - `https://discord.com/api/oauth2/authorize?client_id=${OAUTH2_CLIENT_ID}&state=${state}&response_type=code&scope=${scopeString}&redirect_uri=${redirectURI}&prompt=none`, + `https://discord.com/api/oauth2/authorize?client_id=${OAUTH2_CLIENT_ID}&state=${state}&response_type=code&scope=${scopeString}&redirect_uri=${redirectURI}&prompt=consent`, "Discord_OAuth2" ); |