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

    Class MfaRecoveryCodeEnrollment

    Class implementing the Mfa Recovery Code Enrollment screen functionality. This screen is displayed when the user needs to enroll with a recovery code for MFA.

    Hierarchy

    • BaseContext
      • MfaRecoveryCodeEnrollment

    Implements

    Index

    Constructors

    Properties

    screenIdentifier: string = ScreenIds.MFA_RECOVERY_CODE_ENROLLMENT

    Methods

    • Declares that the user saved the recovery code. This action is triggered when the user declares that they have saved the recovery code. It redirects to the next screen in the authentication flow.

      Parameters

      Returns Promise<void>

      A promise that resolves when the action is successfully submitted.

      import MfaRecoveryCodeEnrollment from '@auth0/auth0-acul-js/mfa-recovery-code-enrollment';
      const mfaRecoveryCodeEnrollmentManager = new MfaRecoveryCodeEnrollment();
      const continueEnrollment = async (payload) => {
      try {
      await mfaRecoveryCodeEnrollmentManager.continue(payload);
      console.log('Enrollment continued successfully.');
      } catch (error) {
      console.error('Error continuing enrollment:', error);
      }
      };

      Rejects with an error if the submission fails.

    • 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.