You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
permissions: skip /permissions/available fetch on unauthenticated pages (#1808)
UsersService is provided in root and eagerly creates an httpResource for
/permissions/available, which auto-fires on app bootstrap before any
auth check, leaking a 401 request from /login and other unauthenticated
pages. Gate the request function on a new isAuthenticated signal in
AuthService — seeded from the existing localStorage 'token_expiration'
and flipped via setAuthenticated() at the login, session-restoration,
and logout transitions already managed by AppComponent. Mirrors the
connection-id gating used by the other httpResource-backed services.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments