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

Provide possibility for stateless storage #17

Open valiafetisov opened 1 year ago

valiafetisov commented 1 year ago

Describe the feature

Currently we store sessions on the server, but the is a known pattern to encrypt the data and store it on the client, removing a requirement for state preservation whatsoever. Possible implementation of this approach is vvo/iron-session (originally referenced in #15.

Known problems with this approach:

We should evaluate this approach and propose technical solution. From my perspective it's a good candidate for the driver option (e.g. driver: 'stateless')

Additional information

No response