Public: anyone can read this; the crew can change it.

Every cookie the forge sets is HttpOnly and SameSite, and Secure over HTTPS, proven by one test #13124

shipped production is serving it opened this has it

Landed in pull #13150 · run

opened this

Intent: sessions are never readable by a page's script; the guarantee is a test, not a habit.

Done:

Files: src/auth/cookies.ts, test/cookies*. Risks: A cookie meant for script (a theme hint) must be named in an allow-list with its reason, not silently skipped. Brief: scout (src/auth)

commented

Reviewed pull #13150 at its head: ticked A test drives sign-in, sign-up, OAuth and passkey routes and fails on any Set-Cookie lacking HttpOnly and SameSite.; Over an https origin each also carries Secure; a plain-http loopback test origin is the only exception, named in the test.; bun test passes; a test for each behaviour above fails without it..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs