File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -67,17 +67,13 @@ differently, options are available to change the defaults.
6767passport .use (new LocalStrategy ({
6868 usernameField: ' email' ,
6969 passwordField: ' passwd' ,
70- session: false
7170 },
7271 function (username , password , done ) {
7372 // ...
7473 }
7574));
7675```
7776
78- When session support is not necessary, it can be safely disabled by
79- setting the ` session ` option to false.
80-
8177The verify callback can be supplied with the ` request ` object by setting
8278the ` passReqToCallback ` option to true, and changing callback arguments
8379accordingly.
@@ -87,7 +83,6 @@ passport.use(new LocalStrategy({
8783 usernameField: ' email' ,
8884 passwordField: ' passwd' ,
8985 passReqToCallback: true ,
90- session: false
9186 },
9287 function (req , username , password , done ) {
9388 // request object is now first argument
You can’t perform that action at this time.
0 commit comments