In plain words
After you log in, your browser holds a small token, usually in a cookie, and sends it with every request to prove it's still you.
Where you see it
Open your browser's dev tools, go to Application, and look under Cookies or Local Storage: Supabase keeps an sb-...-auth-token there, Clerk a __session cookie. Delete it, refresh, and you're logged out.
What goes wrong
- Setting the session cookie from browser code
A cookie written with document.cookie can't be HttpOnly, so any script on the page, including an injected one, can read it and copy the session.
document.cookie = "session=" + token; - Building your own login tokens
Hand-made sessions often skip expiry, signing or the right cookie flags. Supabase Auth, Clerk, Auth.js and Better Auth handle all three.
- Logout that only clears the screen
Some hand-written logout buttons reset the page but leave the token in place. The next person at that computer is still logged in as you.
What to tell your agent
Quick check
Sign in to earn +10 XP for itA Chirp user logs out on a library computer. The next person opens Chirp and is still logged in as them. Most likely cause?