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

    Class MfaCountryCodes

    Class implementing the mfa-country-codes screen functionality This screen allows users to select a country code for MFA phone number verification

    Hierarchy

    • BaseContext
      • MfaCountryCodes

    Implements

    Index

    Constructors

    Properties

    screenIdentifier: string = ScreenIds.MFA_COUNTRY_CODES

    Methods

    • Selects a country code from the available options

      Parameters

      Returns Promise<void>

      import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';

      const mfaCountryCodes = new MfaCountryCodes();

      // Get the available country codes and phone prefixes
      const { screen } = mfaCountryCodes;
      const { phone_prefixes } = screen.data
      const {country_code, phone_prefix} = phone_prefixes[0]

      await mfaCountryCodes.selectCountryCode({
      country_code: 'US',
      phone_prefix: '+1',
      });