validatePerson method

Future validatePerson(
  1. String atsign,
  2. String email,
  3. String? otp, {
  4. bool confirmation = false,
})

Implementation

Future<dynamic> validatePerson(String atsign, String email, String? otp,
    {bool confirmation = false}) async {
  if (!initialized) {
    _init();
  }
  Map data;
  String path = AppConstants.apiPath + AppConstants.validatePerson;
  data = {
    'email': '$email',
    'atsign': "$atsign",
    'otp': '$otp',
    'confirmation': confirmation
  };
  var response = await postRequest(path, data);

  return response;
}