Skip to content

Error: req#logout requires a callback function (regression) #902

@CherryDT

Description

@CherryDT

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

  • passport version: 0.6.0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions