setUpTotp method
Initiates setup of a time-based one-time passcode (TOTP) MFA method for the current user.
NOTE: Your backend must be set up with TOTP MFA enabled prior to calling this method.
The TotpSetupDetails returned contains a TotpSetupDetails.getSetupUri method for retrieving the setup URI. This can be used to build a QR code or a button which opens the user's installed authenticator app. After setup is complete on the user's end, call verifyTotpSetup with a one-time code to complete registration.
Implementation
Future<TotpSetupDetails> setUpTotp({
TotpSetupOptions? options,
}) =>
defaultPlugin.setUpTotp(options: options);