disableMfa method
Disable MFA (Multi-Factor Authentication).
code
is the one-time password generated by the user's password manager.
Throws an NhostException
if disabling MFA fails.
Implementation
@override
Future<void> disableMfa(String code) async {
await _apiClient.post(
'/user/mfa',
jsonBody: {
'code': code,
'activeMfaType': '',
},
headers: _session.authenticationHeaders,
);
}