[Vuejs]-Feathers vuex : user is no longer logged in after refresh

0👍

You just need some logic to fetch your token on refresh.
You will first need to save it somewhere, let’s say sessionStorage.

You can use vuex-persistedstate as you mentioned, but a lighter solution would be just setting your user property in the state of the store like this

user: sessionStorage.getItem(yourkey) ?? null

Leave a comment