0π
β
I am using Vuex Persisted State package for such purposes. It is quite simple to add. Try it out.
With Vuex Persisted State
your Vuex store will be stored in localStorage
so the user wonβt be logged out after exiting the app.
Source:stackexchange.com