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

express-jwt

Package Overview
Dependencies
Maintainers
1
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 0.1.1 to 0.1.2

9

lib/index.js

@@ -9,2 +9,9 @@ var jwt = require('jsonwebtoken');

var token;
if(req.method === 'OPTIONS' && req.headers.hasOwnProperty('access-control-request-headers')) {
if (req.headers['access-control-request-headers'].split(', ').indexOf('authorization') != -1) {
return next();
}
}
if (req.headers && req.headers.authorization) {

@@ -33,2 +40,2 @@ var parts = req.headers.authorization.split(' ');

};
};
};

2

package.json
{
"name": "express-jwt",
"version": "0.1.1",
"version": "0.1.2",
"description": "JWT authentication middleware.",

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

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