Comparing version 0.0.17 to 0.0.18
@@ -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){ |
{ | ||
"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
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
28583
135
165
12