bindPhone static method
bind phone to current user.
Implementation
static Future<AuthResult> bindPhone(String phoneNumber, String passCode,
[String? phoneCountryCode]) async {
Map map = {};
map.putIfAbsent('phoneNumber', () => phoneNumber);
map.putIfAbsent('passCode', () => passCode);
if (phoneCountryCode != null) {
map.putIfAbsent('phoneCountryCode', () => phoneCountryCode);
}
final Result result = await post('/api/v3/bind-phone', jsonEncode(map));
return AuthResult(result);
}