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.
Improve the story of storing
id
andcreatedAt
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.