File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments