validatePerson method
It will validate the person with atsign, email and the OTP. If the validation is successful, it will return a cram secret for the user to login
Implementation
Future<dynamic> validatePerson(String atsign, String email, String? otp,
{bool confirmation = false}) async {
if (!initialized) {
_init();
}
Map<String, String?> data;
String path =
AtOnboardingConstants.apiPath + AtOnboardingConstants.validatePerson;
data = <String, String?>{
'email': email,
'atsign': atsign,
'otp': otp,
'confirmation': confirmation.toString()
};
dynamic response = await postRequest(path, data);
return response;
}