Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
fix: token expire (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby authored Apr 18, 2020
1 parent 85e5a64 commit 8fd6cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const user = {
},
mutations: {
SET_TOKEN: (state, token) => {
Vue.ls.set(ACCESS_TOKEN, token)
Vue.ls.set(ACCESS_TOKEN, token, token ? token.expired_in * 1000 : null)
state.token = token
},
CLEAR_TOKEN: state => {
Expand Down

0 comments on commit 8fd6cd2

Please sign in to comment.