express-jwt
Advanced tools
Comparing version 7.4.2 to 7.4.3
{ | ||
"name": "express-jwt", | ||
"version": "7.4.2", | ||
"version": "7.4.3", | ||
"description": "JWT authentication middleware.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -128,5 +128,5 @@ # express-jwt | ||
### Multi-tenancy | ||
### Retrieve key dynamically | ||
If you are developing an application in which the secret used to sign tokens is not static, you can provide a callback function as the `secret` parameter. The function has the signature: `function(req, payload, done)`: | ||
If you need to obtain the key dynamically from other sources, you can pass a function in the `secret` parameter with the following parameters: | ||
@@ -136,3 +136,3 @@ - `req` (`Object`) - The express `request` object. | ||
For example, if the secret varies based on the [JWT issuer](http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html#issDef): | ||
For example, if the secret varies based on the [issuer](http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html#issDef): | ||
@@ -139,0 +139,0 @@ ```javascript |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
22979