aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-07-03 22:15:39 +0100
committerGravatar Joe Banks <[email protected]>2024-07-03 22:15:39 +0100
commit0b2af57c128a4fc256b44c08f4f73bed5c3a5dc0 (patch)
tree10349f8bf81b705c1103853f8df569f7f4631194
parentAdd some debug logging to timezone autoselection (diff)
Add more logging for OAuth2 state mismatches
-rw-r--r--src/api/auth.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/auth.ts b/src/api/auth.ts
index 14b1193..eddbb1e 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. Expected ${state}, received ${message.data.state}`);
+ throw Error(`Integrity check failed. Expected state of ${state}, received ${message.data}`);
}
// Remove handler