We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The provided example is missing the user-not-found handler:
passport.use(new CustomStrategy( function(req, done) { User.findOne({ username: req.body.username }, function (err, user) { done(err, user); }); } ));
I understand that this is already stated in other strategies but it would be great to have something like:
passport.use(new CustomStrategy( function(req, done) { User.findOne({ username: req.body.username }, function (err, user) { if (typeof user !== 'undefined' && user) done(err, user); else done(err, false); // <- This }); } ));
The text was updated successfully, but these errors were encountered:
Go ahead and add a PR for the docs update!!
Sorry, something went wrong.
No branches or pull requests
The provided example is missing the user-not-found handler:
I understand that this is already stated in other strategies but it would be great to have something like:
The text was updated successfully, but these errors were encountered: