From 23f227dd0d3885c0229a9eff670f1ba21d24d42b Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Fri, 1 May 2020 14:19:43 -0700 Subject: Add XSRF token to websocket connection Resolves HTTP authentication failure when attempting to make a websocket connection. Signed-off-by: Yoshie Muranaka Change-Id: Ie833f1cd281dd3b7124ac798eb5318b24df0ed8f --- src/store/modules/Authentication/AuthenticanStore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/store/modules') diff --git a/src/store/modules/Authentication/AuthenticanStore.js b/src/store/modules/Authentication/AuthenticanStore.js index d64c7308..7a0c5ba3 100644 --- a/src/store/modules/Authentication/AuthenticanStore.js +++ b/src/store/modules/Authentication/AuthenticanStore.js @@ -10,7 +10,8 @@ const AuthenticationStore = { }, getters: { authError: state => state.authError, - isLoggedIn: state => !!state.cookie + isLoggedIn: state => !!state.cookie, + token: state => state.cookie }, mutations: { authSuccess(state) { -- cgit v1.2.3