Socket
Socket
Sign inDemoInstall

jsonwebtoken

Package Overview
Dependencies
14
Maintainers
8
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.2.0 to 8.2.1

6

CHANGELOG.md

@@ -7,2 +7,8 @@ # Change Log

## 8.2.1 - 2018-04-05
- bug fix: Check payload is not null when decoded. (#444) ([1232ae9352ce5fd1ca6c593291ce6ad0834a1ff5](https://github.com/auth0/node-jsonwebtoken/commit/1232ae9352ce5fd1ca6c593291ce6ad0834a1ff5))
- docs: Clarify that buffer/string payloads must be JSON (#442) ([e8ac1be7565a3fd986d40cb5e31a9f6c4d9aed1b](https://github.com/auth0/node-jsonwebtoken/commit/e8ac1be7565a3fd986d40cb5e31a9f6c4d9aed1b))
## 8.2.0 - 2018-03-02

@@ -9,0 +15,0 @@

2

decode.js

@@ -13,3 +13,3 @@ var jws = require('jws');

var obj = JSON.parse(payload);
if(typeof obj === 'object') {
if(obj !== null && typeof obj === 'object') {
payload = obj;

@@ -16,0 +16,0 @@ }

{
"name": "jsonwebtoken",
"version": "8.2.0",
"version": "8.2.1",
"description": "JSON Web Token implementation (symmetric and asymmetric)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -28,3 +28,3 @@ # jsonwebtoken

`payload` could be an object literal, buffer or string. *Please note that* `exp` is only set if the payload is an object literal.
`payload` could be an object literal, buffer or string representing valid JSON. *Please note that* `exp` is only set if the payload is an object literal. Buffer or string payloads are not checked for JSON validity.

@@ -31,0 +31,0 @@ `secretOrPrivateKey` is a string, buffer, or object containing either the secret for HMAC algorithms or the PEM

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc