Creates an instance of MfaCountryCodes screen manager
Static
screenNavigates back to the previous screen
Optional
payload: CustomOptionsOptional custom options to include with the request
Selects a country code from the available options
The options containing the country code selection action
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',
});
Class implementing the mfa-country-codes screen functionality This screen allows users to select a country code for MFA phone number verification