Skip to content
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

Allow user to supply where the session object lives #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Allow user to supply where the session object lives #2

wants to merge 2 commits into from

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