opengovsg / starter-kit

A technical kit to quickly build new products
https://start.open.gov.sg
MIT License
36 stars 6 forks source link

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

Closed karrui closed 9 months ago

karrui commented 9 months ago

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.

vercel[bot] commented 9 months ago

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
karrui commented 9 months ago

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.