Skip to content

Commit

Permalink
fix: state param not generated before authorize call MP-479
Browse files Browse the repository at this point in the history
  • Loading branch information
emuvente committed Aug 30, 2024
1 parent 0c8a220 commit a77ad45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/KvAuth0.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ export default class KvAuth0 {
// Ensure browser clock is correct before fetching the token
syncDate().then(() => {
// Store the current URL in session storage to redirect back to it after MFA
const state = storeRedirectState();
return storeRedirectState();
}).then(state => {
this.webAuth.authorize({
state,
audience: this.mfaAudience,
Expand Down

0 comments on commit a77ad45

Please sign in to comment.