status code
This commit is contained in:
parent
72379d9145
commit
1f5df2f730
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user