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

Passport session lacks a serializer and deserializer #522

Open
leonm1 opened this issue Nov 14, 2019 · 0 comments · May be fixed by #804
Open

Passport session lacks a serializer and deserializer #522

leonm1 opened this issue Nov 14, 2019 · 0 comments · May be fixed by #804

Comments

@leonm1
Copy link
Member

leonm1 commented Nov 14, 2019

This is an okay default but ideally, a serializer with user id would fix bugs that are fixed by logging out and logging back in.

Desired implementation:

serialize: only userid and usertype goes in session
deserialize: issue a query to the DB using userid and usertype to get the latest user object

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 a pull request may close this issue.

1 participant