Skip to content

Commit f1a84ff

Browse files
committed
Fix LoadFromFile
1 parent 2844d8f commit f1a84ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

methods/Helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = class Helpers {
3333
const response = JSON.parse(string);
3434

3535
if (helpers.VerifySignature(response, rsaPubKey)) {
36-
const licenseKey = JSON.parse(Buffer.from(response.licenseKey, 'base64').toString("utf-8"));
36+
const licenseKey = JSON.parse(Buffer.from(helpers.GetValueCaseInsensitive(response,"licenseKey"), 'base64').toString("utf-8"));
3737
const signed = new Date(licenseKey.SignDate * 1000);
3838
const exp = new Date(signed.getFullYear(), signed.getMonth(), signed.getDate() + signatureExpirationInterval);
3939
if (signatureExpirationInterval > 0 && new Date() > exp) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cryptolens",
3-
"version": "1.0.13",
3+
"version": "1.0.14",
44
"description": "Client API for NodeJS to access Cryptolens Software Licensing API.",
55
"main": "main.js",
66
"scripts": {

0 commit comments

Comments
 (0)