session: false doesn't work
wzup opened this issue · 6 comments
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 🤔
passport-local/lib/strategy.js
Lines 42 to 56 in 4d9fbef
Same here. Looking in the source code I can't see anywhere where the session-option is actually used 🤔
passport-local/lib/strategy.js
Lines 42 to 56 in 4d9fbef
Looks like a documentation error.
session: false
option only works in passport.authenticate('local', { session: false })