@passport-next/passport
Advanced tools
Comparing version 1.0.0 to 1.0.1
This changelog follows Semantic Versioning https://semver.org/ | ||
# 1.0.1 (2018-08-11) | ||
* Fixed premature redirect when using express sessions @zypA13510 @idurotola | ||
# 1.0.0 (2018-09-06) | ||
@@ -4,0 +8,0 @@ |
@@ -104,2 +104,11 @@ /** | ||
function redirect(url) { | ||
if (req.session && req.session.save && typeof req.session.save == 'function') { | ||
return req.session.save(function() { | ||
return res.redirect(url); | ||
}); | ||
} | ||
return res.redirect(url); | ||
} | ||
function allFailed() { | ||
@@ -146,3 +155,3 @@ if (callback) { | ||
if (options.failureRedirect) { | ||
return res.redirect(options.failureRedirect); | ||
return redirect(options.failureRedirect); | ||
} | ||
@@ -260,6 +269,6 @@ | ||
} | ||
return res.redirect(url); | ||
return redirect(url); | ||
} | ||
if (options.successRedirect) { | ||
return res.redirect(options.successRedirect); | ||
return redirect(options.successRedirect); | ||
} | ||
@@ -266,0 +275,0 @@ next(); |
{ | ||
"name": "@passport-next/passport", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Simple, unobtrusive authentication for Node.js.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
46527
1071