Socket
Socket
Sign inDemoInstall

express-jwt

Package Overview
Dependencies
Maintainers
3
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-jwt - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

LICENSE.txt

4

lib/index.js

@@ -8,3 +8,3 @@ var jwt = require('jsonwebtoken');

var _userProperty = options.userProperty || 'user';
var _requestProperty = options.userProperty || options.requestProperty || 'user';
var credentialsRequired = typeof options.credentialsRequired === 'undefined' ? true : options.credentialsRequired;

@@ -65,3 +65,3 @@

req[_userProperty] = decoded;
req[_requestProperty] = decoded;
next();

@@ -68,0 +68,0 @@ });

{
"name": "express-jwt",
"version": "1.0.0",
"version": "1.1.0",
"description": "JWT authentication middleware.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -59,6 +59,6 @@ # express-jwt

By default, the decoded token is attached to `req.user` but can be configured with the `userProperty` option.
By default, the decoded token is attached to `req.user` but can be configured with the `requestProperty` option.
```javascript
jwt({ secret: publicKey, userProperty: 'auth' });
jwt({ secret: publicKey, requestProperty: 'auth' });
```

@@ -139,4 +139,2 @@

[The MIT License](http://opensource.org/licenses/MIT)
Copyright (c) 2013 Auth0 <[http://auth0.com](http://auth0.com)>
This project is licensed under the MIT license. See the [LICENSE](LICENSE.txt) file for more info.

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