passport-local
passport-local copied to clipboard
session: false doesn't work
Session: false is not working. Your docs say it should be specified in options. But that's not true. It doesn't work that way.
passport.use(new LocalStrategy({
usernameField: 'email',
passwordField: 'passwd',
session: false
},
function(username, password, done) {
// ...
}
));
Either change docs of modify the code. Because it has to be like this, not in initial config
passport.authenticate('local', {session:false})
Any progress on this running into this same problem?
Same here
Running into this issue as well, can this get some attention?
The same problem here, it's causing 100s of unwanted sessions between backend APIs, please help! @jaredhanson
Same here. Looking in the source code I can't see anywhere where the session-option is actually used 🤔
https://github.com/jaredhanson/passport-local/blob/4d9fbefeba48164c43d5bde4e48ff57c2c37d372/lib/strategy.js#L42-L56
Same here. Looking in the source code I can't see anywhere where the session-option is actually used 🤔
https://github.com/jaredhanson/passport-local/blob/4d9fbefeba48164c43d5bde4e48ff57c2c37d372/lib/strategy.js#L42-L56
Looks like a documentation error.
session: false option only works in passport.authenticate('local', { session: false })