Overview
This article explains how to access the user’s updated MFA status within an Action during the login flow when the user is challenged with MFA.
Applies To
- Multifactor Authentication
- Action
- Login Flow
Solution
Auth0 has a newer set of APIs for managing MFA in Actions. With these APIs, the login flow continues from the following Actions that are available:
api.authentication.enrollWith
api.authentication.enrollWithAny
api.authentication.challengeWith
api.authentication.challengeWithAny
This allows access to the user’s MFA status in the succeeding Action with the following attribute:
event.authentication.methods