From 4e34fad70008d5f20a7ceb719d7912f0b0d478d2 Mon Sep 17 00:00:00 2001 From: Marc Schmidt Date: Sun, 23 Jun 2024 13:50:17 +0200 Subject: [PATCH] fix: when already logged in the login screen might flash during app start --- src/client/src/app/app.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/app/app.config.ts b/src/client/src/app/app.config.ts index ae97e9c..62e266b 100644 --- a/src/client/src/app/app.config.ts +++ b/src/client/src/app/app.config.ts @@ -60,8 +60,8 @@ export const appConfig: ApplicationConfig = { useFactory: () => { const authService = inject(AuthService); const webPushService = inject(WebPushService); - return () => { - authService.init(); + return async () => { + await authService.init(); webPushService.init(); }; },