SetLicenseUserCredential static method

int SetLicenseUserCredential({
  1. required String email,
  2. required String password,
})

Sets the license email and password for authentication.

This function must be called before ActivateLicense() or IsLicenseGenuine() function if requireAuthentication property of the license is set to true.

The function throws a LexActivatorException on error.

Implementation

static int SetLicenseUserCredential({
  required String email,
  required String password,
}) {
  int status = _lexActivatorNative.SetLicenseUserCredential(
    email,
    password,
  );
  if (LexStatusCodes.LA_OK != status) {
    throw LexActivatorException(status);
  }
  return status;
}