jwt-decode
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "jwt-decode", | ||
"description": "Decode JWT payload in the browser", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"keywords": ["jwt", "jsonwebtoken", "token", "decode"], | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/auth0/jwt-decode", |
@@ -6,3 +6,3 @@ 'use strict'; | ||
module.exports = function (token) { | ||
if (!token) { | ||
if (typeof token !== 'string') { | ||
throw new Error('Invalid token specified'); | ||
@@ -9,0 +9,0 @@ } |
{ | ||
"name": "jwt-decode", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Decode JWT tokens, mostly useful for browser applications.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
22839