-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
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
[BUG] Error: req#logout requires a callback function with passport@^0.6.0 #768
Comments
About passport 0.6.0 support see #698 At the moment it seems to be available only at Note: starting from Old ( |
Is here a maintainer, who can tell if we can expect an update (prod ready) soon? :) |
A beta update was released over the weekend and we are waiting on a little more work over at FWIW, the beta packages are functionally stable, and several are using them in production right now. The reason the packages are labeled as In any case, I would recommend against anything older than the 3.x series, and certainly not the 0.x series that you're on. |
Hey @cjbarth, |
The final release of 4.0.0 was released. |
Hello, first thanks for this package :)
So, now the problem:
We've updated passport to 0.6.0 and now we get the following error:
Error: req#logout requires a callback function
This is because passport now requires a logout callback function, as you can see here:
https://www.passportjs.org/concepts/authentication/logout/
In the
validateCallback
function in theauthenticate
method of theAbstractStrategy
class you are usingreq.logout()
without a callback function.Is it possible to make an update for this? :)
Thanks a lot!
Seb
The text was updated successfully, but these errors were encountered: