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

feat: update iron-session to v8, update session to only store userId #237

Merged
merged 4 commits into from
Dec 13, 2023

Conversation

karrui
Copy link
Collaborator

@karrui karrui commented Dec 12, 2023

This PR updates iron-session package to v8. Also updates session to only store the userId instead of the entire user object.

tRPC middlewares have been modified to add the user object into the context object. A new agnosticProcedure has also been added to facilitate procedures that have different behaviours depending on whether the user is logged in or not, such as listing posts that the current user has liked, if available.

Copy link

vercel bot commented Dec 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
starter-kit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2023 10:47am

Copy link
Collaborator Author

karrui commented Dec 12, 2023

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@karrui karrui force-pushed the 12-12-feat_update_iron-session_to_v8 branch from 6d26fd5 to 6695d11 Compare December 12, 2023 10:45
@karrui karrui merged commit b8aa804 into main Dec 13, 2023
5 checks passed
@karrui karrui deleted the 12-12-feat_update_iron-session_to_v8 branch December 13, 2023 09:10
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