StoicBuilder

HandbookV the OfficinaInspecting cookies and storage

Vthe Officina, Use the tools

Inspecting cookies and storage

1 min readUpdated 28 November

In plain words

The Application panel in DevTools shows the cookies, localStorage and other data your app keeps in this browser, and lets you edit or delete each one.

Where you see it

In DevTools, the Application panel's left sidebar lists Local storage, Session storage and Cookies for the site. In a Supabase app, your sign-in is the entry whose name starts with sb- and ends in -auth-token. Delete it and reload to see the app as a logged-out visitor.

Consolebrowser
localStorage.getItem("theme") // "dark"Object.keys(localStorage) // ["theme", "sb-abcd1234-auth-token"]document.cookie // "theme=dark"
Page scripts can read localStorage and ordinary cookies. HttpOnly cookies never appear in document.cookie, only in the Application panel.

What goes wrong

  1. Testing logged out in a new tab

    Every tab of the same site shares one set of storage, so a new tab is still signed in. Use an incognito window, or delete the auth entry and reload.

  2. Deciding the plan from a stored value

    If Quill reads plan: "pro" from localStorage, anyone can edit that value here and get Pro for free. The server has to check the plan.

  3. Old stored data after a change

    You rename a key or change what it holds, and returning visitors still carry the old version. The app breaks for them while it works for you in a fresh window.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
List every key this app keeps in localStorage, sessionStorage and cookies: what each holds, when it's written and when it's cleared. Make the app cope with a missing or outdated value instead of crashing, and tell me how to test that in the Application panel.

Quick check

Sign in to earn +10 XP for it

Quill should show a sign-in page to logged-out visitors. What's the quickest way to check that without making a new account?

Got a prompt that touches inspecting cookies and storage?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.