Class implementing the mfa-phone-enrollment screen functionality.
This screen allows users to enroll using a phone number for MFA.
Example
Copy
import MfaPhoneEnrollment from '@auth0/auth0-acul-js/mfa-phone-enrollment';const mfaPhoneEnrollmentManager = new MfaPhoneEnrollment();async function handlePickCountryCode() { try { await mfaPhoneEnrollmentManager.pickCountryCode(); console.log('Country code selection successful.'); } catch (error) { console.error('Error selecting country code:', error); }}/ async pickCountryCode(payload?: CustomOptions): Promise<void> { const options = { state: this.transaction.state, telemetry: [MfaPhoneEnrollment.screenIdentifier, 'pickCountryCode'], }; await new FormHandler(options).submitData<CustomOptions>({ ...payload, action: 'pick-country-code', }); } /**Continues the enrollment process with the provided phone number and type (SMS or voice).@param payload The phone number and type (SMS or voice).@example