Skip to content

Commit 78fbe4b

Browse files
authored
Merge pull request skooner-k8s#33 from titilambert/master
Support k8s cluster with parameter
2 parents 57da03c + c6165ec commit 78fbe4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/services/apiProxy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function request(path, params, autoLogoutOnAuthError = true) {
1919

2020
if (!response.ok) {
2121
const {status, statusText} = response;
22-
if (autoLogoutOnAuthError && status === 401) {
22+
if (autoLogoutOnAuthError && status === 401 && token) {
2323
log.error('Logging out due to auth error', {status, statusText, path});
2424
logout();
2525
}

0 commit comments

Comments
 (0)