Skip to content

Commit

Permalink
fix: error returning nonce and state
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRivers committed Sep 11, 2024
1 parent b437cac commit bdf06f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/generateAuthUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ export const generateAuthUrl = (
}

authUrl.search = new URLSearchParams(searchParams).toString();
return { url: authUrl, state: generatedState, nonce: generatedNonce };
return { url: authUrl, state: searchParams["state"], nonce: searchParams["nonce"] };
};

0 comments on commit bdf06f4

Please sign in to comment.