Socket
Socket
Sign inDemoInstall

jsonwebtoken

Package Overview
Dependencies
Maintainers
6
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonwebtoken - npm Package Compare versions

Comparing version 5.0.4 to 5.0.5

test/set_headers.tests.js

10

index.js

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

signature: decoded.signature
}
};
}

@@ -42,3 +42,3 @@ return payload;

var header = ((typeof options.headers === 'object') && options.headers) || {};
var header = {};

@@ -51,5 +51,5 @@ if (typeof payload === 'object') {

if (options.header) {
Object.keys(options.header).forEach(function (k) {
header[k] = options.header[k];
if (options.headers) {
Object.keys(options.headers).forEach(function (k) {
header[k] = options.headers[k];
});

@@ -56,0 +56,0 @@ }

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

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

# jsonwebtoken [![Build Status](https://secure.travis-ci.org/auth0/node-jsonwebtoken.png)](http://travis-ci.org/auth0/node-jsonwebtoken)
An implementation of [JSON Web Tokens](http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html).
An implementation of [JSON Web Tokens](https://tools.ietf.org/html/rfc7519).

@@ -20,3 +20,3 @@ This was developed against `draft-ietf-oauth-json-web-token-08`. It makes use of [node-jws](https://github.com/brianloveswords/node-jws)

`payload` could be an literal, buffer or string
`payload` could be an object literal, buffer or string. *Please note that* `exp` is only set if the payload is an object literal.

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc