enableTotpMfa abstract method
- @POST.new('/users/@me/mfa/totp/enable')
- @Body.new() required EnableMfaTotpRequest body,
Enable TOTP multi-factor authentication.
Enable time-based one-time password (TOTP) MFA on the current account. Returns backup codes for account recovery. Requires sudo mode verification.
body - Name not received - field will be skipped.
Implementation
@POST('/users/@me/mfa/totp/enable')
Future<MfaBackupCodesResponse> enableTotpMfa({
@Body() required EnableMfaTotpRequest body,
});