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

    Class ResetPasswordMfaSmsChallenge

    This class provides methods to handle the reset-password-mfa-sms-challenge screen.

    Hierarchy

    • BaseContext
      • ResetPasswordMfaSmsChallenge

    Implements

    Index

    Constructors

    Properties

    screenIdentifier: string = ScreenIds.RESET_PASSWORD_MFA_SMS_CHALLENGE

    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 ResetPasswordMfaSmsChallenge from '@auth0/auth0-acul-js/reset-password-mfa-sms-challenge';

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