Skip to main content
Class implementing the reset-password-mfa-voice-challenge screen functionality.
Example
const reset = new ResetPasswordMfaVoiceChallenge();
await reset.continue({ code: '123456' });

Constructors

ResetPasswordMfaVoiceChallenge
Constructor
Creates an instance of ResetPasswordMfaVoiceChallenge screen manager.

Properties

branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
screenIdentifier
string

Methods

continue
Promise<void>
Continues with the voice challenge using the provided code.A promise that resolves when the challenge is submitted.
Example
const reset = new ResetPasswordMfaVoiceChallenge();
await reset.continue({ code: '123456' });
getErrors
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.
resendCode
Promise<void>
Resends the code via voice call.A promise that resolves when the code is resent.
resendManager
Utility FeatureGets resend functionality with timeout management for this screenResendControl object with startResend method
Example
import 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();
switchToSms
Promise<void>
Switches to SMS verification.A promise that resolves when the action completes.
tryAnotherMethod
Promise<void>
Allows the user to try another MFA method.A promise that resolves when the request is submitted.