jsonwebtoken
Advanced tools
Comparing version 7.1.10 to 7.2.0
{ | ||
"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
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
90876
42
1278
+ Addedhoek@4.3.1(transitive)
+ Addedisemail@2.2.1(transitive)
+ Addeditems@2.2.1(transitive)
+ Addedjoi@10.6.0(transitive)
+ Addedtopo@2.1.1(transitive)
- Removedhoek@2.16.3(transitive)
- Removedisemail@1.2.0(transitive)
- Removedjoi@6.10.1(transitive)
- Removedmoment@2.30.1(transitive)
- Removedtopo@1.1.0(transitive)
Updatedjoi@^10.0.1