Skip to content
Snippets Groups Projects
Commit bd377148 authored by Tae Hoon's avatar Tae Hoon
Browse files

delete state.token instead of setting false

parent 8a32731e
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!846Fix broken token authentication
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: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment