corbel-token-verifier
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "corbel-token-verifier", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A corbel token verifier for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,5 +22,11 @@ 'use strict'; | ||
decoded[1] = parseInt(parseInt(decoded[1], 16) / 1000, 10); | ||
try { | ||
decoded[1] = JSON.parse(serialize(decoded[1])); | ||
decoded[0] = Object.assign({}, decoded[0], decoded[1]); | ||
} catch (e) { | ||
decoded[1] = parseInt(parseInt(decoded[1], 16) / 1000, 10); | ||
} | ||
if ((!decoded[0] && !decoded[1]) || isNaN(decoded[1])) { | ||
if (!decoded[0] && !decoded[1]) { | ||
return false; | ||
@@ -27,0 +33,0 @@ } |
@@ -24,3 +24,4 @@ 'use strict'; | ||
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ', | ||
'eyJ0eXBlIjoiVE9LRU4iLCJjbGllbnRJZCI6IjU0MzgyMzA3Iiwic3RhdGUiOiIxNDcyNjM2Mjk5MDAwIiwiZG9tYWluSWQiOiJib29xczpudWJpY286ZXMiLCJkZXZpY2VJZCI6IldlYi1iODc5ZDAyZS02NzlmLTQ2MGItODNjYi1lMGVkNDQzYjdlNWEiLCJ1c2VySWQiOiJib29xczpudWJpY286ZXM6ZGVtb3Rlc3QxNzpleHRlcm5hbDpicS5jb20iLCJncm91cHMiOltdfQ.53cb1bb3d7f24.B9Hom1dSVx6lXztSc6AQSXz5yho' | ||
'eyJ0eXBlIjoiVE9LRU4iLCJjbGllbnRJZCI6IjU0MzgyMzA3Iiwic3RhdGUiOiIxNDcyNjM2Mjk5MDAwIiwiZG9tYWluSWQiOiJib29xczpudWJpY286ZXMiLCJkZXZpY2VJZCI6IldlYi1iODc5ZDAyZS02NzlmLTQ2MGItODNjYi1lMGVkNDQzYjdlNWEiLCJ1c2VySWQiOiJib29xczpudWJpY286ZXM6ZGVtb3Rlc3QxNzpleHRlcm5hbDpicS5jb20iLCJncm91cHMiOltdfQ.53cb1bb3d7f24.B9Hom1dSVx6lXztSc6AQSXz5yho', | ||
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIxIiwiYXVkIjoiMiIsImV4cCI6MTQ3MjY0NTA4MCwic2NvcGUiOiIzIiwiZG9tYWluSWQiOiJ0ZXN0In0.BEmsXpnCbAsjxCr2fJomdouSEJPgSN5dCE8f56jNx1Q' | ||
] | ||
@@ -27,0 +28,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9265
213