confirmPhoneRegistrationPasswordless method
Confirm phone number registration
Implementation
Future<ResponseModel> confirmPhoneRegistrationPasswordless(
TokenOtpInput body) async {
try {
String url = '$baseUrl/registration/passwordless/confirm-phone';
Response? response = await postx(url, body: json.encode(body));
ResponseModel data =
ResponseModel.fromJson(json.decode(response.toString()));
return Future.value(data);
} catch (e) {
return Future.error(e);
}
}