Socket
Socket
Sign inDemoInstall

express-authorization-bearer

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

0

index.js
'use strict';
module.exports = require('./src');

2

package.json
{
"name": "express-authorization-bearer",
"version": "1.0.1",
"version": "1.0.2",
"description": "Bearer authorization token middleware for express.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,7 +17,9 @@ # About

const app = express();
const router = app.Router();
const router = express.Router();
app.use('/', router.get('user/:id', bearerAuthorization, function (req, res) {
res.send(`token ${req.token}`);
}));
router.get('/user/:id', bearerAuthorization, function (req, res) {
res.send(`token ${req.token}`);
})
app.use('/', router);
app.listen(3000);

@@ -24,0 +26,0 @@ ```

@@ -0,0 +0,0 @@ 'use strict';

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc