Expected behavior
req.logout() without a callback should work, as it did before and as your docs show.
Actual behavior
Error is thrown: req#logout requires a callback function
This bug was introduced four days ago in this commit.
The branch that doesn't use session manager which you added later has done && done() as expected but the other one now checks whether done is a function and throws if it's not. It should probably also check for existence first.
Expected behavior
req.logout()without a callback should work, as it did before and as your docs show.Actual behavior
Error is thrown:
req#logout requires a callback functionThis bug was introduced four days ago in this commit.
The branch that doesn't use session manager which you added later has
done && done()as expected but the other one now checks whetherdoneis a function and throws if it's not. It should probably also check for existence first.