Skip to content
Snippets Groups Projects
Commit 19143a02 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FEAT #15550 TIME 0:03 add handleErrors

parent 0eb5afad
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment