jwt-license-verifier 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
@@ -20,6 +20,7 @@ export declare const getNodeInfo: (app: string) => Promise<string>;
|
|
20
20
|
* @function
|
21
21
|
* @param {string} appOrLibName - The application or library name that token should be verified against.
|
22
22
|
* @param {string} token - The license token to be verified.
|
23
|
+
* @param {string} altPublicKey - The alternative public key.
|
23
24
|
* @returns {Promise<object>} A Promise that resolves to the decoded license information if verification is successful.
|
24
25
|
* @throws {Error} If there is an error during token verification, if the NodeInfo does not match,
|
25
26
|
* or if appOrLibName is null, undefined, or empty or not present in the decoded data.
|
@@ -32,7 +33,7 @@ export declare const getNodeInfo: (app: string) => Promise<string>;
|
|
32
33
|
* console.error(error.message);
|
33
34
|
* }
|
34
35
|
*/
|
35
|
-
export declare function verifyLicense(appOrLibName: string, token: string): Promise<object>;
|
36
|
+
export declare function verifyLicense(appOrLibName: string, token: string, altPublicKey?: string): Promise<object>;
|
36
37
|
/**
|
37
38
|
* Decodes a license token without performing verification.
|
38
39
|
*
|