diff --git a/npm/ng-packs/packages/theme-shared/src/lib/services/status-code-error-handler.service.ts b/npm/ng-packs/packages/theme-shared/src/lib/services/status-code-error-handler.service.ts index 976bb11702..5bacd7c3c0 100644 --- a/npm/ng-packs/packages/theme-shared/src/lib/services/status-code-error-handler.service.ts +++ b/npm/ng-packs/packages/theme-shared/src/lib/services/status-code-error-handler.service.ts @@ -17,7 +17,7 @@ export class StatusCodeErrorHandlerService implements CustomHttpErrorHandlerServ protected readonly authService = inject(AuthService); protected readonly handledStatusCodes = [401, 403, 404, 500] as const; - protected status: typeof this.handledStatusCodes[number]; + protected status: (typeof this.handledStatusCodes)[number]; readonly priority = CUSTOM_HTTP_ERROR_HANDLER_PRIORITY.normal; @@ -90,8 +90,9 @@ export class StatusCodeErrorHandlerService implements CustomHttpErrorHandlerServ this.showConfirmation(title, message).subscribe(); break; - case 403: + this.authService.logout(); + break; case 500: this.showPage(); break;