confirmAccountActivationByPin method

Future<void> confirmAccountActivationByPin(
  1. String email,
  2. String pinCode, {
  3. required void onSuccess(),
  4. required void onError(
    1. 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);
  });
}