
LincyR.15910 (Customer) asked a question.
We are invoking the Authn API signInWithCredentials with username and password and expect to get 'MFA_REQUIRED' in the response status and details about the next steps or authenticator factors. But the obtained response have status as 'SUCCESS' and we couldn't figure out details about the next steps/authenticators.
It is invoked as below:-
await this.oktaAuth.signInWithCredentials({ username: this.userName, password: this.password });
MFA methods are already added and we were getting corresponding details in NextSteps when we were using idx APIs.
Could you please help with how to get those details with the Authn APIs

Hello @LincyR.15910 (Customer) Thank you for reacting out to our Community!
If the authentication is successful with username and password alone, then I would recommend to review the sign-on policies and make sure that when the authentication happens user should be prompted for MFA.
Please see doc for authentication policy:
https://developer.okta.com/docs/guides/archive-configure-signon-policy/main/
Please see doc below that should provide the required API call for MFA Challenge:
https://developer.okta.com/docs/reference/api/authn/#response-example-for-primary-authentication-with-a-public-application-factor-challenge
Community members help others by clicking Like or Select as Best on responses. Try it today.
What you missed: new product releases and other announcements