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

    Class MfaSmsList

    MfaSmsList Class for handling the mfa-sms-list screen.

    Hierarchy

    • BaseContext
      • MfaSmsList

    Implements

    Index

    Constructors

    Properties

    screenIdentifier: string = ScreenIds.MFA_SMS_LIST

    Methods

    • Navigates back to the previous screen.

      Parameters

      Returns Promise<void>

      import MfaSmsList from '@auth0/auth0-acul-js/mfa-sms-list';
      const mfaSmsList = new MfaSmsList();
      const handleBackAction = async () => {
      try {
      await mfaSmsList.backAction();
      } catch (error) {
      console.error('Failed to go back:', error);
      }
      };
    • Retrieves the array of transaction errors from the context, or an empty array if none exist.

      Returns Classes.Error[]

      An array of error objects from the transaction context.

    • Selects a phone number from the list of enrolled phone numbers.

      Parameters

      Returns Promise<void>

      If the index is out of bounds.

      import MfaSmsList from '@auth0/auth0-acul-js/mfa-sms-list';
      const mfaSmsList = new MfaSmsList();
      const selectPhoneNumber = async () => {
      const getEnrolledPhoneNumbers = mfaSmsList.user.enrolledPhoneNumbers;
      const selectedNumber = getEnrolledPhoneNumbers[0];
      await mfaSmsList.selectPhoneNumber({index: selectedNumber});
      }