unbindEmail static method

Future<AuthResult> unbindEmail()

unbind email to current user.

Implementation

// 1320009 no email
// 1320010 no other login method
static Future<AuthResult> unbindEmail() async {
  final Result result = await post('/api/v2/users/email/unbind');
  AuthResult authResult = AuthResult(result);
  if (result.code == 200) {
    authResult.user = await createUser(result);
  }
  return authResult;
}