Skip to content

docs(development): warn that a standalone console dev server inherits the hosted session - #3535

Merged
tada5hi merged 1 commit into
masterfrom
worktree-docs-dev-cookie-note
Sep 2, 2026
Merged

tada5hi merged 1 commit into
masterfrom
worktree-docs-dev-cookie-note

Conversation

@tada5hi

@tada5hi tada5hi commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

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:3010 and localhost:3000 are the same host to the browser. Running npm run dev -w apps/client-admin-console while 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.

… 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.
Copilot AI lite review requested due to automatic review settings September 2, 2026 11:54
@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 17 minutes.

Check out review usage here.

View limit details

Limit 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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 090cd495-b3ce-4fd0-a9a1-63cee40afce5

📥 Commits

Reviewing files that changed from the base of the PR and between 775d095 and 8a35bba.

📒 Files selected for processing (1)
  • docs/src/guide/development/quick-start.md

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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:3000 and localhost:3010 share 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.

Comment on lines +122 to +125
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
@tada5hi
tada5hi merged commit 5499bfe into master Sep 2, 2026
5 checks passed
@tada5hi
tada5hi deleted the worktree-docs-dev-cookie-note branch September 2, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants