Local cookie-presence check, deliberately not named isAuthenticated: a session can exist locally yet be revoked server-side. The server's 401 is the authoritative signal; this only gates UI before any network call.
isAuthenticated
Local cookie-presence check, deliberately not named
isAuthenticated: a session can exist locally yet be revoked server-side. The server's 401 is the authoritative signal; this only gates UI before any network call.