Class implementing the reset-password-mfa-voice-challenge screen functionality.
const reset = new ResetPasswordMfaVoiceChallenge();
await reset.continue({ code: '123456' });
Constructors
ResetPasswordMfaVoiceChallenge
Creates an instance of ResetPasswordMfaVoiceChallenge screen manager.
Properties
Methods
Continues with the voice challenge using the provided code.A promise that resolves when the challenge is submitted.const reset = new ResetPasswordMfaVoiceChallenge();
await reset.continue({ code: '123456' });
Retrieves the array of transaction errors from the context, or an empty array if none exist.An array of error objects from the transaction context.
Resends the code via voice call.A promise that resolves when the code is resent.
Optional custom options to include with the request.
Utility FeatureGets resend functionality with timeout management for this screenResendControl object with startResend methodimport ResetPasswordMfaVoiceChallenge from '@auth0/auth0-acul-js/reset-password-mfa-voice-challenge';
const resetPasswordMfaVoiceChallenge = new ResetPasswordMfaVoiceChallenge();
const { startResend } = resetPasswordMfaVoiceChallenge.resendManager({
timeoutSeconds: 15,
onStatusChange: (remainingSeconds, isDisabled) => {
console.log(`Resend available in ${remainingSeconds}s, disabled: ${isDisabled}`);
},
onTimeout: () => {
console.log('Resend is now available');
}
});
// Call startResend when user clicks resend button
startResend();
Configuration options for resend functionalityProperties
Switches to SMS verification.A promise that resolves when the action completes.
Optional custom options to include with the request.
Allows the user to try another MFA method.A promise that resolves when the request is submitted.
Optional custom options to include with the request.