Access to client-specific information (e.g., client ID, name).
Access to organization-specific information, if applicable.
Access to prompt details (e.g., prompt name).
Access to the specific properties and data of the 'reset-password-mfa-phone-challenge' screen.
Access to the current transaction details (e.g., state, errors).
Sends the verification code to the user's phone via the specified method (SMS or Voice). This action corresponds to the user clicking the "Send Code via SMS" or "Send Code via Voice Call" button. It triggers the Auth0 backend to initiate the code delivery process.
The options specifying the delivery type ('sms' or 'voice') and any custom data.
A promise that resolves when the action is successfully submitted to the server.
Navigates the user to the screen where they can select an alternative MFA method. This action corresponds to the user clicking a "Try Another Method" button.
The options specifying the current challenge type (sms
or voice
) and any custom data. The type
field is necessary to inform the backend which flow the user is navigating away from.
A promise that resolves when the action is successfully submitted to the server.
import ResetPasswordMfaPhoneChallenge from '@auth0/auth0-acul-js/reset-password-mfa-phone-challenge';
const screen = new ResetPasswordMfaPhoneChallenge();
// If the user was presented with SMS option initially:
await screen.tryAnotherMethod({ type: 'sms' });
// If the user was presented with Voice option initially:
await screen.tryAnotherMethod({ type: 'voice' });
ResetPasswordMfaPhoneChallengeMembers