From 37f3b5c92c830036f515153f2f3a57175501085a Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Wed, 3 Jul 2024 22:20:27 +0100 Subject: [PATCH] Stringify received data in OAuth2 Logging --- src/api/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/auth.ts b/src/api/auth.ts index eddbb1ef..cd382862 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 of ${state}, received ${message.data}`); + throw Error(`Integrity check failed. Expected state of ${state}, received ${JSON.stringify(message.data)}`); } // Remove handler