Repository navigation
docs(development): warn that a standalone console dev server inherits the hosted session - #3535
Conversation
… the hosted session Cookies ignore ports, so localhost:3010 and localhost:3000 are one host to the browser. A console dev server started while a session from the hosted auth pages is open seeds itself from that session's path-`/` token cookies and comes up signed in, without running the flow under test. The last open half of plan 098 D1; the #3403 half was closed as parked.
|
Warning Review limit reachedNext included review available in 17 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟢 Approval recommended
Documentation-only change is correct and low-risk; only minor wording polish was suggested in a comment.
Pull request overview
Adds a development-focused warning to the quick-start guide clarifying that a standalone console dev server on localhost can appear “already signed in” due to shared cookie scope with the hosted auth pages (ports are ignored for cookies), and instructs developers to sign out first.
Changes:
- Documented that
localhost:3000andlocalhost:3010share cookies, which can seed auth state unexpectedly. - Added a concrete mitigation step (
http://localhost:3000/logout/ clear cookies) and clarified this is a same-host dev-only artifact.
File summaries
| File | Description |
|---|---|
| docs/src/guide/development/quick-start.md | Adds a warning block about shared localhost cookie scope affecting standalone console dev sign-in fidelity. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| Cookies ignore ports, so `localhost:3010` and `localhost:3000` are the same | ||
| HOST to the browser. A standalone console started while a session from the | ||
| hosted auth pages is still open therefore seeds itself from that session's | ||
| path-`/` token cookies and comes up already signed in, without ever running |
The last open half of plan 098 D1. The #3403 half is closed as parked, because both served consoles hold no JWT cookies since 088; this is the artefact that made the question look bigger than it was.
Cookies ignore ports, so
localhost:3010andlocalhost:3000are the same host to the browser. Runningnpm run dev -w apps/client-admin-consolewhile a session from the hosted auth pages is still open means the console seeds its store from that session's path-/token cookies and comes up already signed in, without ever running the sign-in flow the standalone origin is meant to exercise. Sign out first.Scoped as the development artefact it is: a real deployment serves the consoles on the API's own origin, where they hold no token cookies at all, and a standalone-hosted console runs on a domain of its own.
Docs-only, one file.