commit | 23f227dd0d3885c0229a9eff670f1ba21d24d42b | [log] [tgz] |
---|---|---|
author | Yoshie Muranaka <yoshiemuranaka@gmail.com> | Fri May 01 14:19:43 2020 -0700 |
committer | Derick Montague <derick.montague@ibm.com> | Wed May 06 15:10:11 2020 +0000 |
tree | 03c17d1e52c73f0b286bd41d5e0f11a8e0253598 | |
parent | 5c977976d9450b50faeb33ba5bd1b5deaabcc3b5 [diff] |
Add XSRF token to websocket connection Resolves HTTP authentication failure when attempting to make a websocket connection. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ie833f1cd281dd3b7124ac798eb5318b24df0ed8f
diff --git a/src/store/modules/Authentication/AuthenticanStore.js b/src/store/modules/Authentication/AuthenticanStore.js index d64c730..7a0c5ba 100644 --- a/src/store/modules/Authentication/AuthenticanStore.js +++ b/src/store/modules/Authentication/AuthenticanStore.js
@@ -10,7 +10,8 @@ }, getters: { authError: state => state.authError, - isLoggedIn: state => !!state.cookie + isLoggedIn: state => !!state.cookie, + token: state => state.cookie }, mutations: { authSuccess(state) {