79346904

Date: 2025-01-10 20:11:02
Score: 1.5
Natty:
Report link

private _isAuthenticated = new BehaviorSubject(false); _isAuthenticated$ = this._isAuthenticated.asObservable();

then you either subscribe on the _isAuthenticated$ or await it with const isAuth = await firstValueFrom(auth.isAuthenticated);

As it is atm you only check the initial value with the get property. you never subscribe for changes.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jonathan