Skip to main content

setLicence

Sets the licence for the Signature SDK. The licence is transaction-based and has two components: a key and a secret.

await sigObj.setLicence(key, secret)
Parameters
key: String with the licence key.
secret: String with the licence secret.
Return values
The function returns a promise that resolves to true when it succeeds, or raises an exception if it fails.
note

Calling setLicence from the browser exposes the key and secret publicly. To keep them private, use setLicenceProxy instead.