sidebase / nuxt-session

Nuxt session middleware to get a persistent session per app user, e.g., to store data across multiple requests. The nuxt session module provides the useSession() composable out of the box and sets up API endpoints to interact with your session to make working with sessions feel like a breeze.
https://sidebase.io/nuxt-session/
MIT License
189 stars 19 forks source link

Better store session-meta-data in `session` object #2

Open BracketJohn opened 1 year ago

BracketJohn commented 1 year ago

Improve the story of storing id and createdAt within the session object.

E.g., we could add read-only copies in, so that overwriting it leads to no changes in session at all.