Merge pull request #33 from titilambert/master

Support k8s cluster with  parameter
This commit is contained in:
Eric Herbrandson
2019-07-10 15:14:06 -04:00
committed by GitHub

View File

@@ -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();
}