jwt-simple
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -0,1 +1,5 @@ | ||
## 0.3.1 | ||
* Check for lack of token #23 | ||
## 0.3.0 | ||
@@ -2,0 +6,0 @@ |
@@ -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))); |
{ | ||
"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"], |
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
10409
213