Skip to content

Commit

Permalink
Stringify received data in OAuth2 Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Jul 3, 2024
1 parent 0b2af57 commit 37f3b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37f3b5c

Please sign in to comment.