I have an issue where MFA is not offered to user after he fills username and password fields and clicks on continue.
Require Multi-factor Auth is set to “Never”
Customize MFA factors using Actions is set to “On”
Action is on post login trigger. Action code:
api.authentication.challengeWith({type: “email”});
User is enrolled with email address.
User is redirected from my Angular application to another Angular application that serves for login using Auth0. Here is the code from that app that calls Auth0.
Thank you for posting your question! I’ve checked your tenant configuration, and it looks like you haven’t enabled the factors required by your actions to challenge the user. Can you enable them and let me know if this fixes your issue?
I found some clue. When i check ‘remember this device for 30 days’ after logging in and trying second login im not welcomed with MFA, just login username and password, and after redirection i receive ‘Multifactor authentication required’, and im not able to login after that… How can i resolve this issue? I cleared cookies and sessions and local storage on both apps.
It is for all users, i just double checked. I am able to receive MFA until i check remember this device. After that i only receive username/password and after clicking continue im redirected to my callback page, and there ‘Multifactor authentication required’ is fired.
Without that, i could call login multiple times on same rout, and it always throw Multifactor required, even if multifactor was not offered to user because ‘remember browser’ was checked.