Commit bd377148 authored by Tae Hoon's avatar Tae Hoon

delete state.token instead of setting false

parent 8a32731e
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: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment