From 19143a02f1d05096e77791f8b7c8252c394dd9c0 Mon Sep 17 00:00:00 2001 From: "hamza.hramchi" <hamza.hramchi@xelians.fr> Date: Fri, 11 Dec 2020 17:38:29 +0100 Subject: [PATCH] FEAT #15550 TIME 0:03 add handleErrors --- src/frontend/app/service/auth-interceptor.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/app/service/auth-interceptor.service.ts b/src/frontend/app/service/auth-interceptor.service.ts index f763de3379..fa95a35668 100644 --- a/src/frontend/app/service/auth-interceptor.service.ts +++ b/src/frontend/app/service/auth-interceptor.service.ts @@ -79,6 +79,7 @@ export class AuthInterceptor implements HttpInterceptor { catchError(err => { // Disconnect user if bad token process if (err.status === 401) { + this.notificationService.handleErrors(err); this.logout(); return EMPTY; } @@ -90,6 +91,7 @@ export class AuthInterceptor implements HttpInterceptor { catchError(err => { // Disconnect user if bad token process if (err.status === 401) { + this.notificationService.handleErrors(err); this.logout(); } return EMPTY; -- GitLab