mfaVerifyByRecoveryCode static method
MFA by recovery code
Implementation
static Future<AuthResult> mfaVerifyByRecoveryCode(String code) async {
var body = jsonEncode({'authenticatorType': 'totp', 'recoveryCode': code});
final Result result =
await post('/api/v2/applications/mfa/totp/recovery', body);
AuthResult authResult = AuthResult(result);
authResult.user = await createUser(result);
return authResult;
}