diff --git a/frontend/src/app/services/auth.service.ts b/frontend/src/app/services/auth.service.ts index db6368d..e8e44b4 100644 --- a/frontend/src/app/services/auth.service.ts +++ b/frontend/src/app/services/auth.service.ts @@ -23,8 +23,10 @@ export class AuthService { private snackBar: MatSnackBar ) { // Check if user is already logged in on service initialization + this.checkAuthStatus(); + timer(1000).subscribe(() => { - this.checkAuthStatus(); + this.reloadUsername(); }); }