reverted
This commit is contained in:
parent
9cfb22f176
commit
fb999d96a5
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ export class AccountServiceClient {
|
||||||
private handleError(error: AxiosError): void {
|
private handleError(error: AxiosError): void {
|
||||||
if (error != null && error.response != null && error.response.status === 401) {
|
if (error != null && error.response != null && error.response.status === 401) {
|
||||||
// session timed out?
|
// session timed out?
|
||||||
this.kcSvc.login({ redirectUri: window.location.href });
|
this.kcSvc.login();
|
||||||
}
|
}
|
||||||
console.log(error);
|
console.log(error);
|
||||||
ContentAlert.danger(error.name + ': ' + error.message);
|
ContentAlert.danger(error.name + ': ' + error.message);
|
||||||
|
@ -114,7 +114,7 @@ export class AccountServiceClient {
|
||||||
headers: {...config.headers, Authorization: 'Bearer ' + token}
|
headers: {...config.headers, Authorization: 'Bearer ' + token}
|
||||||
});
|
});
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.kcSvc.login({ redirectUri: window.location.href });
|
this.kcSvc.login();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue