mirror of
https://github.com/skooner-k8s/skooner.git
synced 2026-05-19 06:06:42 +00:00
Merge pull request #33 from titilambert/master
Support k8s cluster with parameter
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user