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

    Interface MfaRecoveryCodeChallengeNewCodeMembers

    MfaRecoveryCodeChallengeNewCodeMembers

    Hierarchy

    • BaseMembers
      • MfaRecoveryCodeChallengeNewCodeMembers

    Implemented by

    Index

    Properties

    Access to the specific properties and data of the 'mfa-recovery-code-challenge-new-code' screen. Includes the textCode which is the recovery code to be displayed.

    Methods

    • Confirms that the user has saved the new recovery code and continues the authentication flow. This method should be called after the user indicates they have securely stored the displayed recovery code. It sends a confirmation to the Auth0 server to proceed to the next step.

      Parameters

      Returns Promise<void>

      A promise that resolves when the confirmation is successfully submitted.

      Throws an error if the submission fails (e.g., network issue, invalid state).

      import MfaRecoveryCodeChallengeNewCode from '@auth0/auth0-acul-js/mfa-recovery-code-challenge-new-code';

      const screenManager = new MfaRecoveryCodeChallengeNewCode();

      // Assuming the user has checked a box confirming they saved the code
      try {
      await screenManager.continue();
      // Redirects to the next screen on success
      } catch (error) {
      console.error("Failed to confirm recovery code saved:", error);
      // Handle error, e.g., display a message from screenManager.transaction.errors
      }