Creates an instance of the ResetPasswordMfaRecoveryCodeChallenge screen.
Static
screenContinues with the provided recovery code.
The recovery code entered by the user.
Optional
payload: Classes.CustomOptionsOptional payload.
import ResetPasswordMfaRecoveryCodeChallenge from '@auth0/auth0-acul-js/reset-password-mfa-recovery-code-challenge';
const resetPasswordMfaManager = new ResetPasswordMfaRecoveryCodeChallenge();
const continueWithRecoveryCode = async () => {
try {
await resetPasswordMfaManager.continue('RECOVERY_CODE');
console.log('Recovery code submitted successfully.');
} catch (error) {
console.error('Error submitting recovery code:', error);
}
};
Navigates to the screen where the user can pick another MFA method.
Optional
payload: Classes.CustomOptionsOptional payload.
import ResetPasswordMfaRecoveryCodeChallenge from '@auth0/auth0-acul-js/reset-password-mfa-recovery-code-challenge';
const resetPasswordMfaRecoveryCodeChallengeManager = new ResetPasswordMfaRecoveryCodeChallenge();
const handleTryAnotherMethod = async () => {
try {
await resetPasswordMfaRecoveryCodeChallengeManager.tryAnotherMethod();
} catch (error) {
console.error('Failed to try another method:', error);
}
};
Class implementing the Reset Password MFA Recovery Code Challenge screen functionality.