From c6165ecc729b23e8ea6b8f26f946800c225009ee Mon Sep 17 00:00:00 2001 From: Thibault Cohen Date: Wed, 10 Jul 2019 14:29:55 -0400 Subject: [PATCH] Support k8s cluster with parameter --- client/src/services/apiProxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/services/apiProxy.js b/client/src/services/apiProxy.js index ede39a7..79a3450 100644 --- a/client/src/services/apiProxy.js +++ b/client/src/services/apiProxy.js @@ -19,7 +19,7 @@ export async function request(path, params, autoLogoutOnAuthError = true) { if (!response.ok) { const {status, statusText} = response; - if (autoLogoutOnAuthError && status === 401) { + if (autoLogoutOnAuthError && status === 401 && token) { log.error('Logging out due to auth error', {status, statusText, path}); logout(); }