I\'ve created simple VueCLI auth module using axios and Vuex.
In store.js I\'ve got all logic for tokens using api from session.js:
store.js
session.js