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.
@@ -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
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jwt-license-verifier",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Impleo Jwt license verifier",
5
5
  "author": "IMPLEOTV SYSTEMS LTD",
6
6
  "license": "Proprietary",