jwt-simple
Advanced tools
+4
-0
@@ -0,1 +1,5 @@ | ||
| ## 0.3.1 | ||
| * Check for lack of token #23 | ||
| ## 0.3.0 | ||
@@ -2,0 +6,0 @@ |
+6
-2
@@ -59,3 +59,7 @@ /* | ||
| jwt.decode = function jwt_decode(token, key, noVerify, algorithm) { | ||
| // check seguments | ||
| // check token | ||
| if (!token) { | ||
| throw new Error('No token supplied'); | ||
| } | ||
| // check segments | ||
| var segments = token.split('.'); | ||
@@ -122,3 +126,3 @@ if (segments.length !== 3) { | ||
| // create segments, all segment should be base64 string | ||
| // create segments, all segments should be base64 string | ||
| var segments = []; | ||
@@ -125,0 +129,0 @@ segments.push(base64urlEncode(JSON.stringify(header))); |
+2
-7
| { | ||
| "name": "jwt-simple", | ||
| "description": "JWT(JSON Web Token) encode and decode module", | ||
| "version": "0.3.0", | ||
| "version": "0.3.1", | ||
| "author": "Kazuhito Hokamura <k.hokamura@gmail.com>", | ||
@@ -17,8 +17,3 @@ "repository": { | ||
| }, | ||
| "licenses": [ | ||
| { | ||
| "type": "MIT", | ||
| "url": "https://raw.github.com/hokaccha/node-jwt-simple/master/LICENSE" | ||
| } | ||
| ], | ||
| "license": "MIT", | ||
| "engines": {"node": ">= 0.4.0"}, | ||
@@ -25,0 +20,0 @@ "keywords": ["jwt", "encode", "decode"], |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
10409
0.08%213
1.91%