@auth0/auth0-acul-js - v0.1.0-beta.5
    Preparing search index...

    Class MfaPhoneChallenge

    MfaPhoneChallenge

    Hierarchy

    • BaseContext
      • MfaPhoneChallenge

    Implements

    Index

    Constructors

    Properties

    Holds the specific screen data for the MFA Phone Challenge.

    screenIdentifier: string = ScreenIds.MFA_PHONE_CHALLENGE

    The unique identifier for this screen.

    Methods

    • Submits the user's choice of receiving the MFA code via SMS or voice call. It uses the phone number provided in the screen context.

      Parameters

      Returns Promise<void>

      A promise that resolves upon successful submission.

      Throws an error if the phone number is not available in the screen context or if the submission fails.

      const mfaPhoneChallenge = new MfaPhoneChallenge();
      // Request code via SMS
      await mfaPhoneChallenge.continue({ type: 'sms' });
      // Request code via Voice Call
      await mfaPhoneChallenge.continue({ type: 'voice' });