Class implementing the mfa-country-codes screen functionality
This screen allows users to select a country code for MFA phone number verification
Example
Copy
import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';const mfaCountryCodes = new MfaCountryCodes();// Get the available country codes and phone prefixesconst { screen } = mfaCountryCodes;const { phone_prefixes } = screen.dataconst {country_code, phone_prefix} = phone_prefixes[0]await mfaCountryCodes.selectCountryCode({ country_code: 'US', phone_prefix: '+1',});
import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';const mfaCountryCodes = new MfaCountryCodes();// Get the available country codes and phone prefixesconst { screen } = mfaCountryCodes;const { phone_prefixes } = screen.dataconst {country_code, phone_prefix} = phone_prefixes[0]await mfaCountryCodes.selectCountryCode({ country_code: 'US', phone_prefix: '+1',});