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

jsonwebtoken

Package Overview
Dependencies
Maintainers
7
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 7.1.10 to 7.2.0

test/keyid.tests.js

4

package.json
{
"name": "jsonwebtoken",
"version": "7.1.10",
"version": "7.2.0",
"description": "JSON Web Token implementation (symmetric and asymmetric)",

@@ -22,3 +22,3 @@ "main": "index.js",

"dependencies": {
"joi": "^6.10.1",
"joi": "^10.0.1",
"jws": "^3.1.4",

@@ -25,0 +25,0 @@ "lodash.once": "^4.0.0",

@@ -102,5 +102,5 @@ # jsonwebtoken

(Asynchronous) If a callback is supplied, function acts asynchronously. Callback passed the payload decoded if the signature (and optionally expiration, audience, issuer) are valid. If not, it will be passed the error.
(Asynchronous) If a callback is supplied, function acts asynchronously. Callback is passed the decoded payload if the signature and optional expiration, audience, or issuer are valid. If not, it will be passed the error.
(Synchronous) If a callback is not supplied, function acts synchronously. Returns the payload decoded if the signature (and optionally expiration, audience, issuer) are valid. If not, it will throw the error.
(Synchronous) If a callback is not supplied, function acts synchronously. Returns the payload decoded if the signature (and, optionally, expiration, audience, issuer) are valid. If not, it will throw the error.

@@ -107,0 +107,0 @@ `token` is the JsonWebToken string

@@ -17,3 +17,4 @@ var Joi = require('joi');

jwtid: Joi.string(),
noTimestamp: Joi.boolean()
noTimestamp: Joi.boolean(),
keyid: Joi.string()
});

@@ -53,3 +54,4 @@

alg: options.algorithm || 'HS256',
typ: isObjectPayload ? 'JWT' : undefined
typ: isObjectPayload ? 'JWT' : undefined,
kid: options.keyid
}, options.header);

@@ -56,0 +58,0 @@

Sorry, the diff of this file is not supported yet

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