@mojaloop/security-bc-client-lib
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -90,7 +90,12 @@ /***** | ||
const signingKey = key.getPublicKey(); | ||
const decoded = jsonwebtoken_1.default.verify(accessToken, signingKey, verify_opts); | ||
if (!decoded) { | ||
try { | ||
const decoded = jsonwebtoken_1.default.verify(accessToken, signingKey, verify_opts); | ||
if (!decoded) { | ||
return false; | ||
} | ||
return true; | ||
} | ||
catch (err) { | ||
return false; | ||
} | ||
return true; | ||
} | ||
@@ -97,0 +102,0 @@ } |
{ | ||
"name": "@mojaloop/security-bc-client-lib", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "mojaloop security authentication and authorization client library", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
59492
849