@auth0/auth0-acul-js - v1.0.0-alpha.2
    Preparing search index...

    Class MfaVoiceChallenge

    MFA Voice Challenge screen implementation.

    This screen is displayed when a user needs to verify their identity using a voice call as part of a multi-factor authentication flow.

    Hierarchy

    • BaseContext
      • MfaVoiceChallenge

    Implements

    Index

    Constructors

    Properties

    Screen-specific properties and data.

    screenIdentifier: string = ScreenIds.MFA_VOICE_CHALLENGE

    Screen identifier for validation and telemetry

    Methods

    • Retrieves the array of transaction errors from the context, or an empty array if none exist.

      Returns Screens.Error[]

      An array of error objects from the transaction context.

    • Utility Feature

      Gets resend functionality with timeout management for this screen

      Parameters

      Returns Screens.ResendControl

      ResendControl object with startResend method

      import MfaVoiceChallenge from '@auth0/auth0-acul-js/mfa-voice-challenge';

      const mfaVoiceChallenge = new MfaVoiceChallenge();
      const { startResend } = mfaVoiceChallenge.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();