diff options
author | 2022-06-17 22:17:08 +0400 | |
---|---|---|
committer | 2022-06-17 22:17:08 +0400 | |
commit | 049a128d98bd572861c9dba79eed820b86de2fe8 (patch) | |
tree | a2a68ec9d574e14bd7c4493f4983ee02964db766 | |
parent | Merge pull request #432 from python-discord/dependabot/npm_and_yarn/dotenv-16... (diff) | |
parent | Prompt for OAuth2 consent on every auth flow (diff) |
Merge pull request #441 from python-discord/oauth2-prompt-consent
Prompt for OAuth2 consent on every auth flow
-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" ); |