Repository navigation
GEN-2165: Resume MCP signup after verification and secure device login - #214
Merged
exe-dev-github-integration[bot] merged 3 commits intoOct 10, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MCP clients starting signup lost their pending request, and email verification sent users back through password sign-in. This persists each validated connection through signup, resend, and recovery, signs in after verification, and resumes explicit Allow/Deny consent. Callback completion stays in the initiating browser; device onboarding can continue in the verification browser. Requests retain their original deadline, state, PKCE, redirect, and workspace authorization, with isolated concurrent attempts and single-use consent.
Device approval now requires a signed owner/session-bound preview. PostgreSQL locks serialize decisions and token polls; early polls return slow_down and increase the interval by five seconds. Code entry, denial/completion, and expired-request guidance are updated, including recovery with a new client code. Authentication docs use email/password terminology.
Validation: repository-wide npm run check with disposable PostgreSQL, the CI static slice against PostgreSQL, and compiled-browser device recovery/denial checks. Backend: 354 passed (8 unrelated skips); browser: 36 passed; visual/accessibility: 41 passed; static slice: 2 passed; additional protocol browser checks: 4 passed. Coverage includes new/existing accounts, verification in another browser, concurrent signup/resend/recovery, expiry/replay/revocation, forged consent, all device polling outcomes, and real Worker OAuth/PKCE token exchange. OpenAPI/client generation, package boundaries, TypeScript, visual/accessibility checks, and Worker dry runs are included.
Deployment prerequisite: apply additive migration 0014_oauth_onboarding.sql before deploying the Worker. The matching Drizzle schema and generated public API contract are included.
Closes GEN-2165.