diff --git a/src/store/authentication.js b/src/store/authentication.js index ffbf71c..e29434d 100644 --- a/src/store/authentication.js +++ b/src/store/authentication.js @@ -1,4 +1,5 @@ import axios from 'axios'; +import createPersistedState from 'vuex-persistedstate'; const state = { isAuthenticated: false, @@ -35,6 +36,12 @@ const getters = { token: (state) => state.token, }; +const plugins = [ + createPersistedState({ + storage: window.localStorage, + }), +] + export default { namespaced: true, state,