fix(integrations): connect vercel when the code exchange omits user_id
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- backend
Línea de trabajo
Read src/lib/adapters/vercel/schemas.ts and src/lib/adapters/vercel/index.ts, then check a real code exchange for team and Hobby installs using the integration registered under #88. Update the schema, credential handling, tests and fixtures, and docs/providers/vercel.md based on the observed responses. Done when the acceptance criteria pass and the listed typecheck, lint and adapter tests succeed.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Context
Found while re-reading Vercel's token documentation for #757 on 2026-12-02.
StackDash requires user_id in the code exchange response (TokenResponseSchema, src/lib/adapters/vercel/schemas.ts) and in the stored credential metadata (readScope, src/lib/adapters/vercel/index.ts), and a Hobby account is identified by it (listAccounts, sync, and webhook routing by payload.user.id).
Both Vercel documentation pages still show user_id in the code exchange response and in the client credentials response (Building Integrations with Vercel REST API, "Exchange code for Access Token"; Migrating to Short-Lived Access Tokens, "Request a short-lived token"). Vercel's own reference integration does not rely on it: vercel/example-marketplace-integration commit a06457a4 ("Renew installation access tokens (#147)", 2026-11-07) made user_id optional in its code exchange schema (lib/vercel/external-api.ts, test "accepts authorization-code responses with an optional legacy user ID"), and its README says the "Authorization-code exchange accepts the new expires_in response and optional user_id field".
Impact if Vercel omits it for an integration that issues short-lived tokens: every Vercel connect fails at the code exchange with invalid_response, so no Vercel account can connect on the integration #88 registers. Unverified until that integration exists.
Plan
- Check a real code exchange on the integration registered under #88 (development integration first): does the response carry
user_id, for a team install and for a Hobby install? - If it can be missing: make
user_idoptional in the code exchange schema. A team install does not need it (the account isteam_id). For a Hobby install, take it from the client credentials responseexchangeCoderequests right after the exchange (#757), which the documentation shows withuser_id, and refuse the connection with a clear error only when neither carries one. - Keep
readScopeworking for credentials stored before the change.
Acceptance criteria
- A team install whose code exchange response has no
user_idconnects and syncs. - A Hobby install with no
user_idin either response is refused withinvalid_response, never stored half-identified. -
docs/providers/vercel.mdstates what was observed and removes the Unverified entry. - Playwright e2e: not needed, the simulated Vercel flow does not call the token endpoint.
Files and areas
src/lib/adapters/vercel/index.ts, src/lib/adapters/vercel/schemas.ts, their tests and fixtures, docs/providers/vercel.md.
Non-goals: token renewal itself (#757), the integration registration (#88).
Verification
npm run typecheck, npm run lint, npx vitest run src/lib/adapters/vercel.
Branch: <issue-number>-vercel-optional-user-id
Model: anthropic/claude-opus-5-5 | Reasoning effort: max
- Lenguaje dominante
- TypeScript
- Estrellas
- 13
- Forks
- 2
- Merge medio
- 5 h 20 min
- PR fusionados (30 d)
- 287
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de eddiejaoude/StackDash
-
area: integrations documentation priority: P2 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eddiejaoude/StackDash#798 ·
Los mantenedores suelen responder en 1 día
-
area: ops documentation priority: P3 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
eddiejaoude/StackDash#796 ·
Los mantenedores suelen responder en 1 día
-
area: docs documentation impact: low priority: P3 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
eddiejaoude/StackDash#790 ·
Los mantenedores suelen responder en 1 día
-
area: ops bug impact: low priority: P3 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
eddiejaoude/StackDash#785 ·
Los mantenedores suelen responder en 1 día
-
area: connections enhancement impact: low priority: P3 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
eddiejaoude/StackDash#768 ·
Los mantenedores suelen responder en 1 día
Todos los issues de eddiejaoude/StackDash
Issues similares
-
bot:ai-assisted component:midnight-js status:untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
midnightntwrk/midnight-js#1790 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
area:vscode bug has repro platform:macos platform:vscode regression
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDAbiertocheck:passed streams:add
Dificultad 1/5 Menos de una hora Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
effort/l priority/p1 risk/high triage/core
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
iflytek/skillhub#1188 · 1 comentario ·
Los mantenedores suelen responder en 1 día