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.
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.
Optional
payload: Classes.MfaRecoveryCodeChallengeNewCodeContinueOptionsOptional custom data to include with the request.
A promise that resolves when the confirmation is successfully submitted.
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
}
MfaRecoveryCodeChallengeNewCodeMembers