Documentation

@kanunilabs/licensing


@kanunilabs/licensing / useLicenseGuard

Function: useLicenseGuard()

useLicenseGuard(licenseKey?, opts?): LicenseVerification

Resolve the effective license state for a component. If licenseKey is provided it is pushed into the global store (so a single component can configure the whole app). Components may also rely on a previously-set global key.

Pass { validateUrl } to enable the online revocation check.

Parameters

licenseKey?

string

opts?

SetLicenseOptions

Returns

LicenseVerification