Skip to content

Commit f9ba6ad

Browse files
committed
Remove mention of non-existent "session" option
1 parent c5a349b commit f9ba6ad

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,26 +62,21 @@ differently, options are available to change the defaults.
6262

6363
passport.use(new LocalStrategy({
6464
usernameField: 'email',
65-
passwordField: 'passwd',
66-
session: false
65+
passwordField: 'passwd'
6766
},
6867
function(username, password, done) {
6968
// ...
7069
}
7170
));
7271

73-
When session support is not necessary, it can be safely disabled by
74-
setting the `session` option to false.
75-
7672
The verify callback can be supplied with the `request` object by setting
7773
the `passReqToCallback` option to true, and changing callback arguments
7874
accordingly.
7975

8076
passport.use(new LocalStrategy({
8177
usernameField: 'email',
8278
passwordField: 'passwd',
83-
passReqToCallback: true,
84-
session: false
79+
passReqToCallback: true
8580
},
8681
function(req, username, password, done) {
8782
// request object is now first argument

0 commit comments

Comments
 (0)