bindEmail static method

Future<AuthResult> bindEmail(
  1. String email,
  2. String passCode
)

bind email to current user.

Implementation

static Future<AuthResult> bindEmail(String email, String passCode) async {
  Map map = {};
  map.putIfAbsent('email', () => email);
  map.putIfAbsent('passCode', () => passCode);

  final Result result = await post('/api/v3/bind-email', jsonEncode(map));
  return AuthResult(result);
}