enrollTotp method

Enrolls a new TOTP (authenticator app) factor.

Returns an MfaEnrollmentChallenge whose barcodeUri and totpSecret you present to the user (typically as a QR code). After the user adds the account in their authenticator app, complete enrollment with verifyOtp.

Implementation

Future<MfaEnrollmentChallenge> enrollTotp() =>
    Auth0FlutterWebPlatform.instance.mfaEnrollTotp(_mfaToken);