Skip to content

How to test req.isAuthenticated() in express3 sample #86

@evaletolab

Description

@evaletolab

Hello,

I'm wondering how to test authentication with passport. I'm using mocha ( and supertest ) and I didn't find a way to test controllers that depend on req.isAuthenticated()?

It would be really useful to see the test on the example here,
https://github.com/jaredhanson/passport-local/tree/master/examples/express3

Bests regards,
olivier

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions