Skip to content

Commit

Permalink
chore(auth): get redirectUri before setting oauth keys (#12700)
Browse files Browse the repository at this point in the history
chore: get redirectUri before setting oauth keys
  • Loading branch information
israx committed Dec 12, 2023
1 parent 42325fa commit 9ad889a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,14 @@ export async function oauthSignIn({
: randomState;
const { value, method, toCodeChallenge } = generateCodeVerifier(128);

const redirectUri = getRedirectUrl(oauthConfig.redirectSignIn);

store.storeOAuthInFlight(true);
store.storeOAuthState(state);
store.storePKCE(value);

const queryString = Object.entries({
redirect_uri: getRedirectUrl(oauthConfig.redirectSignIn),
redirect_uri: redirectUri ,
response_type: responseType,
client_id: clientId,
identity_provider: provider,
Expand Down

0 comments on commit 9ad889a

Please sign in to comment.