enrollPhone method

Future<MfaEnrollmentChallenge> enrollPhone({
  1. required String phoneNumber,
  2. PhoneType type = PhoneType.sms,
})

Enrolls a new phone (SMS or Voice) factor for the given phoneNumber.

Returns an MfaEnrollmentChallenge containing the oobCode used to complete verification via verifyOob once the user receives the code.

Implementation

Future<MfaEnrollmentChallenge> enrollPhone({
  required final String phoneNumber,
  final PhoneType type = PhoneType.sms,
}) =>
    Auth0FlutterWebPlatform.instance
        .mfaEnrollPhone(_mfaToken, phoneNumber, type);