aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-06-20 11:47:33 -0400
committertaehoon <th.dev91@gmail.com>2019-06-20 11:48:31 -0400
commitbd377148ade7aaf26652dc14ee77683b7e6c8c5a (patch)
treeea94eed3cb7f5fe268be6cf5ae22b5d6b917bb49 /src
parent8a32731e4d3772e79b3de35185de3454663be52d (diff)
delete state.token instead of setting false
Diffstat (limited to 'src')
-rw-r--r--src/modules/oauth.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/oauth.js b/src/modules/oauth.js
index b7755b64..a2a83450 100644
--- a/src/modules/oauth.js
+++ b/src/modules/oauth.js
@@ -1,3 +1,5 @@
+import { delete as del } from 'vue'
+
const oauth = {
state: {
clientId: false,
@@ -25,7 +27,9 @@ const oauth = {
},
clearToken (state) {
state.userToken = false
- state.token = false
+ // state.token is userToken with older name, coming from persistent state
+ // let's clear it as well, since it is being used as a fallback of state.userToken
+ del(state, 'token')
}
},
getters: {