passport-oauth-wrap
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -0,0 +0,0 @@ /*jslint plusplus: true, devel: true, nomen: true, vars: true, node: true, indent: 4, maxerr: 50 */ |
@@ -11,6 +11,9 @@ /*jslint plusplus: true, devel: true, nomen: true, vars: true, node: true, indent: 4, maxerr: 50 */ | ||
return function (req, res, next) { | ||
passport.authenticate("WRAP", function (err, user) { | ||
passport.authenticate("WRAP", function (err, user, chalange, status) { | ||
if (err) { | ||
return next(err); | ||
} | ||
if (status === 500) { | ||
return next(new Error(chalange)); | ||
} | ||
if (!user) { | ||
@@ -17,0 +20,0 @@ var query = { |
@@ -0,0 +0,0 @@ /*jslint plusplus: true, devel: true, nomen: true, vars: true, node: true, indent: 4, maxerr: 50 */ |
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"main": "./lib", | ||
@@ -16,0 +16,0 @@ "dependencies": { |
@@ -0,0 +0,0 @@ passport-oauth-wrap |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
16093
338