Documentation

@kanunilabs/licensing


@kanunilabs/licensing / LicenseManager

Variable: LicenseManager

const LicenseManager: object

Type Declaration

getLicenseState

getLicenseState: () => LicenseVerification = _get

Current cached verification result (synchronous).

Returns

LicenseVerification

isLicensed

isLicensed: () => boolean = _is

True only for a fully valid, in-window, non-revoked license.

Returns

boolean

setLicenseKey

setLicenseKey: (key, opts?) => void = _set

Set (or replace) the active license key. Triggers async verification. Safe to call multiple times; re-verifies only when the key (or options) change.

Parameters

key

string | null | undefined

opts?

SetLicenseOptions

Returns

void