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

@passport-next/passport

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@passport-next/passport - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

CHANGELOG.md
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 @@

15

lib/middleware/authenticate.js

@@ -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": [

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