Skip to content

Allow user to supply where the session object lives#2

Open
jeffandersen wants to merge 2 commits intoioncreature:masterfrom
jeffandersen:master
Open

Allow user to supply where the session object lives#2
jeffandersen wants to merge 2 commits intoioncreature:masterfrom
jeffandersen:master

Conversation

@jeffandersen
Copy link

The genesis of this is that my application uses http://passportjs.org for authentication, meaning my user's session does not live at req.session.user.

Rather than make a specific fallback for Passport, I introduced a handler which allows the developer to supply where on the request object the user data lives (in Passport's case, req.user).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant