From 33ea0ddfdaf8a84696d28940522cfe3693bfe384 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 21 Aug 2026 09:18:55 +0200 Subject: [PATCH] Improve error handling --- apps/client/src/app/core/auth.guard.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/client/src/app/core/auth.guard.ts b/apps/client/src/app/core/auth.guard.ts index e386c040b..fdb50c9ad 100644 --- a/apps/client/src/app/core/auth.guard.ts +++ b/apps/client/src/app/core/auth.guard.ts @@ -10,7 +10,7 @@ import { RouterStateSnapshot } from '@angular/router'; import { EMPTY } from 'rxjs'; -import { catchError } from 'rxjs/operators'; +import { catchError, finalize } from 'rxjs/operators'; @Service() export class AuthGuard { @@ -59,6 +59,9 @@ export class AuthGuard { resolve(true); return EMPTY; + }), + finalize(() => { + resolve(false); }) ) .subscribe((user) => {