robinvdvleuten / vuex-persistedstate

💾 Persist and rehydrate your Vuex state between page reloads.
https://npm.im/vuex-persistedstate
MIT License
5.77k stars 378 forks source link

Can someone give an example on how to use it to persist nuxt auth module(https://auth.nuxtjs.org/) state? #377

Open yiyasha15 opened 3 years ago

yiyasha15 commented 3 years ago

Relevant code or config

What you did: used vuex-persistedstate to persist nuxt auth state. What happened: not working

Reproduction sandbox:

Problem description: what should be the path? why is the state not persisting

Suggested solution:

robinvdvleuten commented 3 years ago

Why not use the module's default options? https://auth.nuxtjs.org/api/storage