Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jwt-simple

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jwt-simple - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

4

History.md

@@ -0,1 +1,5 @@

## 0.3.1
* Check for lack of token #23
## 0.3.0

@@ -2,0 +6,0 @@

8

lib/jwt.js

@@ -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"],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc