ResetPasswordMfaPhoneChallenge

Hierarchy

  • BaseContext
    • ResetPasswordMfaPhoneChallenge

Implements

Constructors

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

Holds the specific screen data and properties, processed by ScreenOverride.

transaction: TransactionMembers

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

untrustedData: UntrustedDataMembers
screenIdentifier: string = ScreenIds.RESET_PASSWORD_MFA_PHONE_CHALLENGE

The unique identifier for this screen, used internally and for telemetry.

Methods

  • Sends the verification code to the user's phone via the selected method (SMS or Voice). Corresponds to the 'Continue' action in the OpenAPI definition (action: 'default').

    Parameters

    Returns Promise<void>

    A promise resolving upon successful submission to the server.

    If the form submission fails.

    const screen = new ResetPasswordMfaPhoneChallenge();
    try {
    await screen.continue({ type: 'sms' });
    // Redirects to code entry screen on success
    } catch (error) {
    console.error("Failed to send SMS code:", error);
    }
  • Initiates the process for the user to select a different MFA authenticator. Corresponds to the 'Try Another Method' action in the OpenAPI definition (action: 'pick-authenticator').

    Parameters

    Returns Promise<void>

    A promise resolving upon successful submission to the server.

    If the form submission fails.

    const screen = new ResetPasswordMfaPhoneChallenge();
    try {
    // Assuming the current screen was for SMS
    await screen.tryAnotherMethod({ type: 'sms' });
    // Redirects to authenticator selection screen on success
    } catch (error) {
    console.error("Failed to switch MFA method:", error);
    }