diff options
author | 2024-07-03 22:20:27 +0100 | |
---|---|---|
committer | 2024-07-03 22:20:27 +0100 | |
commit | 37f3b5c92c830036f515153f2f3a57175501085a (patch) | |
tree | a0a02c770136329755f6228ca23932cc25e7511f | |
parent | Add more logging for OAuth2 state mismatches (diff) |
Stringify received data in OAuth2 Logging
-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 eddbb1e..cd38286 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 |