confirmAccountActivationByPin method
Future<void>
confirmAccountActivationByPin(
- String email,
- String pinCode, {
- required void onSuccess(),
- required void onError(
- SyneriseError error
The function confirmAccountActivationByPin takes an email and a pin code as parameters and confirms
the acctivation of an account by a pinCode.
Args: email (String): A string representing the email address of the user. pinCode (String): The pinCode parameter is a string that represents the PIN code sent to email of the user that account needs to be activated.
Implementation
Future<void> confirmAccountActivationByPin(String email, String pinCode,
{required void Function() onSuccess,
required void Function(SyneriseError error) onError}) async {
SyneriseResult<void> result =
await _methods.confirmAccountActivationByPin(email, pinCode);
result.onSuccess((result) {
onSuccess();
}).onError((error) {
onError(error);
});
}