Skip to content

Serialize and deserialze sessions with email and userType - #804

Open
leonm1 wants to merge 1 commit into
mainfrom
passport-serializer
Open

Serialize and deserialze sessions with email and userType#804
leonm1 wants to merge 1 commit into
mainfrom
passport-serializer

Conversation

@leonm1

@leonm1 leonm1 commented Mar 4, 2021

Copy link
Copy Markdown
Member

Fixes #522 by only serializing email and userType to DB.

I'm not sure if it'd be even better if we made it query all three hacker + organizer + sponsor models, as that way a log-out wouldn't be required when switching user types, but I feel this problem is better fixed in the user interface overhaul.

@leonm1
leonm1 requested a review from gfting March 4, 2021 12:01
@leonm1
leonm1 enabled auto-merge (squash) March 4, 2021 12:01

@gfting gfting left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for fixing this!

@github-actions github-actions Bot added the approved Automatically added, do not manually add label Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Automatically added, do not manually add

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Passport session lacks a serializer and deserializer

2 participants