docs/adr/001-auth-hint-cookie.md
Status: Accepted Date: 2025-12-28 Tags: auth, routing, edge
The web edge needs a fast signal to route / without owning auth logic.
Use a dedicated auth-hint cookie set on login and cleared on logout or invalid session. The web worker checks only cookie presence to route, while the app remains the authority. No API calls or session validation in web.
This cookie is NOT a security boundary. It is a routing hint only. False positives are acceptable and result in one extra redirect to /login.
__Host-auth in HTTPS; auth in HTTP dev (browsers reject __Host- without Secure).