unbindPhone static method

Future<AuthResult> unbindPhone()

unbind current user's phone number.

Implementation

static Future<AuthResult> unbindPhone() async {
  final Result result = await post('/api/v2/users/phone/unbind');
  AuthResult authResult = AuthResult(result);
  if (result.code == 200) {
    authResult.user = await createUser(result);
  }
  return authResult;
}