Skip to content

Commit

Permalink
Fix LoadFromFile
Browse files Browse the repository at this point in the history
  • Loading branch information
artemlos committed Jan 27, 2023
1 parent 2844d8f commit f1a84ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion methods/Helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = class Helpers {
const response = JSON.parse(string);

if (helpers.VerifySignature(response, rsaPubKey)) {
const licenseKey = JSON.parse(Buffer.from(response.licenseKey, 'base64').toString("utf-8"));
const licenseKey = JSON.parse(Buffer.from(helpers.GetValueCaseInsensitive(response,"licenseKey"), 'base64').toString("utf-8"));
const signed = new Date(licenseKey.SignDate * 1000);
const exp = new Date(signed.getFullYear(), signed.getMonth(), signed.getDate() + signatureExpirationInterval);
if (signatureExpirationInterval > 0 && new Date() > exp) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cryptolens",
"version": "1.0.13",
"version": "1.0.14",
"description": "Client API for NodeJS to access Cryptolens Software Licensing API.",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit f1a84ff

Please sign in to comment.