diff options
author | 2018-12-11 15:07:08 +0100 | |
---|---|---|
committer | 2018-12-11 15:07:08 +0100 | |
commit | f7edd4ba6917838e27ffcab5d3fecb875bdd1685 (patch) | |
tree | eb935171023209faa44a860892910ccf876da83b | |
parent | Improve webview loader (diff) | |
download | ferdium-app-f7edd4ba6917838e27ffcab5d3fecb875bdd1685.tar.gz ferdium-app-f7edd4ba6917838e27ffcab5d3fecb875bdd1685.tar.zst ferdium-app-f7edd4ba6917838e27ffcab5d3fecb875bdd1685.zip |
Fix logout
-rw-r--r-- | src/stores/UserStore.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js index 54bbbedae..7addb5760 100644 --- a/src/stores/UserStore.js +++ b/src/stores/UserStore.js | |||
@@ -219,10 +219,11 @@ export default class UserStore extends Store { | |||
219 | } | 219 | } |
220 | 220 | ||
221 | @action _logout() { | 221 | @action _logout() { |
222 | // workaround mobx issue | ||
222 | localStorage.removeItem('authToken'); | 223 | localStorage.removeItem('authToken'); |
224 | window.localStorage.removeItem('authToken'); | ||
223 | this.getUserInfoRequest.invalidate().reset(); | 225 | this.getUserInfoRequest.invalidate().reset(); |
224 | this.authToken = null; | 226 | this.authToken = null; |
225 | // this.data = {}; | ||
226 | } | 227 | } |
227 | 228 | ||
228 | @action async _importLegacyServices({ services }) { | 229 | @action async _importLegacyServices({ services }) { |