diff options
Diffstat (limited to 'src/api/auth.ts')
-rw-r--r-- | src/api/auth.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api/auth.ts b/src/api/auth.ts index cd38286..c9e3634 100644 --- a/src/api/auth.ts +++ b/src/api/auth.ts @@ -125,6 +125,11 @@ export async function getDiscordCode(scopes: OAuthScopes[], disableFunction?: (d return; } + if (message.data.pydis_source !== "oauth2_callback") { + // Ignore messages not from the callback + return; + } + if (message.isTrusted) { windowRef?.close(); |