Class implementing the Mfa Recovery Code Enrollment screen functionality.
This screen is displayed when the user needs to enroll with a recovery code for MFA.
Example
Report incorrect code
Copy
Ask AI
import MfaRecoveryCodeEnrollment from '@auth0/auth0-acul-js/mfa-recovery-code-enrollment';const mfaRecoveryCodeEnrollmentManager = new MfaRecoveryCodeEnrollment();const continueEnrollment = async (payload) => { try { await mfaRecoveryCodeEnrollmentManager.continue(payload); console.log('Enrollment continued successfully.'); } catch (error) { console.error('Error continuing enrollment:', error); }};
Declares that the user saved the recovery code.
This action is triggered when the user declares that they have saved the recovery code.
It redirects to the next screen in the authentication flow.A promise that resolves when the action is successfully submitted.
Example
Report incorrect code
Copy
Ask AI
import MfaRecoveryCodeEnrollment from '@auth0/auth0-acul-js/mfa-recovery-code-enrollment';const mfaRecoveryCodeEnrollmentManager = new MfaRecoveryCodeEnrollment();const continueEnrollment = async (payload) => { try { await mfaRecoveryCodeEnrollmentManager.continue(payload); console.log('Enrollment continued successfully.'); } catch (error) { console.error('Error continuing enrollment:', error); }};