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

bearer

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bearer - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

5

bearer.js

@@ -41,3 +41,6 @@ //Authentication setup

settings.app.use(function (req, res, next) {
var bearer=req.get('Authorization');
//var bearer=req.get('Authorization');
var bearer = req.get('Authorization') || req.cookies['' + settings.cookieName + ''];
var token;

@@ -44,0 +47,0 @@ if (bearer){

2

package.json
{
"name": "bearer",
"version": "0.0.17",
"version": "0.0.18",
"description": "Bearer authentication module using token and Authorization HTTP header",

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

@@ -37,2 +37,3 @@ BearerJS

extendTokenUrl:'/extendtoken', //Call this URL to get your token. Accepts only POST method
cookieName:'x-auth', //default name for getting token from cookie when not found in Authorization header
createToken:function(req, next, cancel){

@@ -39,0 +40,0 @@ //If your user is not valid just return "underfined" from this method.

Sorry, the diff of this file is not supported yet

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