@auth0/auth0-acul-js - v0.1.0-beta.7
    Preparing search index...

    Class ResetPasswordMfaRecoveryCodeChallenge

    Class implementing the Reset Password MFA Recovery Code Challenge screen functionality.

    Hierarchy

    • BaseContext
      • ResetPasswordMfaRecoveryCodeChallenge

    Implements

    Index

    Constructors

    Properties

    screenIdentifier: string = ScreenIds.RESET_PASSWORD_MFA_RECOVERY_CODE_CHALLENGE

    Methods

    • Continues with the provided recovery code.

      Parameters

      • code: string

        The recovery code entered by the user.

      • Optionalpayload: Classes.CustomOptions

        Optional payload.

      Returns Promise<void>

      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);
      }
      };
    • Retrieves the array of transaction errors from the context, or an empty array if none exist.

      Returns Classes.Error[]

      An array of error objects from the transaction context.