status code

This commit is contained in:
Timo Bejan 2021-12-08 11:57:12 +02:00
parent 72379d9145
commit 1f5df2f730

View File

@ -44,7 +44,7 @@ export class ServerErrorInterceptor implements HttpInterceptor {
return next.handle(req).pipe(
catchError((error: HttpErrorResponse) => {
// token expired
if (error.status === HttpStatusCode.Forbidden) {
if (error.status === HttpStatusCode.Unauthorized) {
this._keycloakService.logout();
}
// server error