mfaVerifyByTOTP static method
MFA TOTP (Time-based One Time Password)
Implementation
static Future<AuthResult> mfaVerifyByTOTP(String code) async {
var body = jsonEncode({'authenticatorType': 'totp', 'totp': code});
final Result result =
await post('/api/v2/applications/mfa/totp/verify', body);
AuthResult authResult = AuthResult(result);
authResult.user = await createUser(result);
return authResult;
}