> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-docs-event-stream-action-templates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MfaRecoveryCodeChallengeNewCodeMembers

MfaRecoveryCodeChallengeNewCodeMembers

````ts Example theme={null}
export interface MfaRecoveryCodeChallengeNewCodeMembers extends BaseMembers {
  /**
   * 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.
   * @type {ScreenMembersOnMfaRecoveryCodeChallengeNewCode}
   */
  screen: ScreenMembersOnMfaRecoveryCodeChallengeNewCode;

  /**
   * 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.
   *
   * @param {ContinueOptions} [payload] - Optional custom data to include with the request.
   * @returns {Promise<void>} A promise that resolves when the confirmation is successfully submitted.
   * @throws {Error} Throws an error if the submission fails (e.g., network issue, invalid state).
   *
   * @example
   * ```typescript
   * 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
   * }
   * ```
   */
  continue(payload?: ContinueOptions): Promise<void>;
}
````

## Properties

<ParamField body="branding" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/BrandingMembers">BrandingMembers</a></span>} />

<ParamField body="client" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/ClientMembers">ClientMembers</a></span>} />

<ParamField body="organization" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/OrganizationMembers">OrganizationMembers</a></span>} />

<ParamField body="prompt" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/PromptMembers">PromptMembers</a></span>} />

<ParamField body="screen" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/ScreenMembersOnMfaRecoveryCodeChallengeNewCode">ScreenMembersOnMfaRecoveryCodeChallengeNewCode</a></span>}>
  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.
</ParamField>

<ParamField body="tenant" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/TenantMembers">TenantMembers</a></span>} />

<ParamField body="transaction" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/TransactionMembers">TransactionMembers</a></span>} />

<ParamField body="untrustedData" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/UntrustedDataMembers">UntrustedDataMembers</a></span>} />

<ParamField body="user" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/UserMembers">UserMembers</a></span>} />

## Methods

<ParamField body="continue" type="Promise<void>">
  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.

  A promise that resolves when the confirmation is successfully submitted.

  #### Throws

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

  ```typescript Example theme={null}
  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
  }
  ```

  <Expandable title="Parameters">
    <ParamField body="payload?" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/MfaRecoveryCodeChallengeNewCodeContinueOptions">MfaRecoveryCodeChallengeNewCodeContinueOptions</a></span>}>
      Optional custom data to include with the request.
    </ParamField>
  </Expandable>
</ParamField>
