nuxt-session
nuxt-session copied to clipboard
Web Storage (localstorage) support?
Ask your question
Docummentation suggested that localstorage is supported by referencing to all drivers and unstorage supports localstorage:
Check out here what storage drivers are supported and how to configure them: https://github.com/unjs/unstorage#drivers
How can i use local storage as an session storage?
Use case: I want to store some arbitrary data without purchasing any additional infastructute. The nuxt application is a full static static side hosted on a CDN without server side rendering.
Additional information
Setting driver to localstorage causes the following error with yarn dev
:
TypeError: Cannot add property window, object is not extensible localstorage
same issue