From 0b2af57c128a4fc256b44c08f4f73bed5c3a5dc0 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Wed, 3 Jul 2024 22:15:39 +0100 Subject: Add more logging for OAuth2 state mismatches --- src/api/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3