Interface ResetPasswordMfaPhoneChallengeMembers

ResetPasswordMfaPhoneChallengeMembers

Hierarchy

  • BaseMembers
    • ResetPasswordMfaPhoneChallengeMembers

Implemented by

Properties

branding: BrandingMembers

Access to client-specific information (e.g., client ID, name).

organization: OrganizationMembers

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.

transaction: TransactionMembers

Access to the current transaction details (e.g., state, errors).

untrustedData: UntrustedDataMembers

Methods

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

    Parameters

    Returns Promise<void>

    A promise that resolves when the action is successfully submitted to the server.

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

    import ResetPasswordMfaPhoneChallenge from '@auth0/auth0-acul-js/reset-password-mfa-phone-challenge';

    const screen = new ResetPasswordMfaPhoneChallenge();

    // Send code via SMS
    await screen.continue({ type: 'sms' });

    // Send code via Voice Call
    await screen.continue({ type: 'voice' });
  • 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.

    Parameters

    Returns Promise<void>

    A promise that resolves when the action is successfully submitted to the server.

    Throws an error if the submission fails.

    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' });