mfaVerifyByEmail static method

Future<AuthResult> mfaVerifyByEmail(
  1. String email,
  2. String code
)

MFA by email address and SMS verify code

Implementation

static Future<AuthResult> mfaVerifyByEmail(String email, String code) async {
  var body = jsonEncode({'email': email, 'code': code});
  final Result result =
      await post('/api/v2/applications/mfa/email/verify', body);
  AuthResult authResult = AuthResult(result);
  authResult.user = await createUser(result);
  return authResult;
}