diff options
author | 2024-07-03 21:06:19 +0100 | |
---|---|---|
committer | 2024-07-03 21:06:19 +0100 | |
commit | 4e33a6855e3f36ad79878792a4bbadbdf8f1cb23 (patch) | |
tree | 607ced616df8be165c6d707b6457d97b61e65efe | |
parent | Merge pull request #632 from python-discord/jb3/components/timezone-field (diff) |
Add additional logging for OAuth2 state mismatches
-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 638d8d2..14b1193 100644 --- a/src/api/auth.ts +++ b/src/api/auth.ts @@ -133,7 +133,7 @@ export async function getDiscordCode(scopes: OAuthScopes[], disableFunction?: (d // State integrity check if (message.data.state !== state.toString()) { // This indicates a lack of integrity - throw Error("Integrity check failed."); + throw Error(`Integrity check failed. Expected ${state}, received ${message.data.state}`); } // Remove handler |