fix: Fehlerbehebung bei HTTP-Anfragen durch Umleitung statt Login-Öffnen im canActivate

This commit is contained in:
Developer 02 2024-07-23 16:59:48 +02:00
parent 7f04bb16d3
commit 95d2832ef8

View File

@ -23,7 +23,7 @@ export class AuthGuard implements CanActivate {
const isAuthenticated = await this.authService.isAuthenticated();
if (!isAuthenticated) {
this.openLogin();
this.router.navigate(['/']);
}
return isAuthenticated;