<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007HZQ2HCAXOkta Classic EngineMulti-Factor AuthenticationAnswered2024-06-19T09:18:57.000Z2021-11-11T18:13:50.000Z2021-11-12T22:58:25.000Z

33q1f (33q1f) asked a question.

Using a custom login form with MFA users are prompted to log in with credentials twice before MFA form

I am having some trouble refining the UX of our app's user login now that we have enabled MFA for every log in.

 

We have a next js/react application and have built a custom log in form that uses the following functions to log in:

 

const transaction = await oktaAuth.signInWithCredentials({ username, password });

oktaAuth.signInWithRedirect({ sessionToken: transaction.sessionToken });

 

This has been working great until we enabled MFA. Now when a user logs in with credentials using our custom login form they are redirected to the Okta login form and have to provide their credentials again before they are able to enter in their MFA information. Why doesn't the signInWithCredentials and signInWithRedirect bypass the Okta login screen and take the user straight to the MFA form? And is there a way make the custom login form on our app take you directly to the Okta MFA form?


This question is closed.
Loading
Using a custom login form with MFA users are prompted to log in with credentials twice before MFA form