Skip to content

Commit 3eb0cec

Browse files
committed
fix: error returning nonce and state
1 parent b437cac commit 3eb0cec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/utils/generateAuthUrl.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,9 @@ export const generateAuthUrl = (
4242
}
4343

4444
authUrl.search = new URLSearchParams(searchParams).toString();
45-
return { url: authUrl, state: generatedState, nonce: generatedNonce };
45+
return {
46+
url: authUrl,
47+
state: searchParams["state"],
48+
nonce: searchParams["nonce"],
49+
};
4650
};

0 commit comments

Comments
 (0)