Traditionally, many people use local storage to manage tokens generated through client-side authentication. A big concern is always a better way to manage authorization tokens to allow us to store even more information on users.
This is where Vuex comes in. Vuex manages states for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion.
Sounds like a better alternative to always checking localStorage? Let’s explore it.
PrerequisitesSetting up the application modules
For this project, we want to create a vue application that has vuex and
... read the whole story at scotch.io.