signin with openai
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- authentication, backend
Línea de trabajo
Start by reading OpenAI's SIWC token-sharing documentation and the existing @tanstack/ai-openrouter/pkce implementation. The scope also names the BYOK keyring, the ts-react-chat BYOK key dialog, the BYOK and OpenAI adapter documentation, and unit tests for the helpers. Done means the specified sign-in, callback, token refresh, UI, docs, and tests are covered, while respecting the stated token and Responses API limits.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Add "Sign in with ChatGPT" (SIWC) to BYOK, so a user can use their ChatGPT plan instead of pasting an OpenAI API key.
OpenAI docs: https://developers.openai.com/siwc/token-sharing-open-source
Scope
- New subpath
@tanstack/ai-openai/siwc, modelled on@tanstack/ai-openrouter/pkce.- Start: dynamic client registration (
client_id=dynamic_agent_client,agent_name_hint, persistedext_agent_host_id),state,nonce, PKCE S256, redirecthttp://127.0.0.1:<port>/auth/callback. - Callback: check
state, handleerror, keep the issuedclient_id, exchange the code athttps://auth.openai.com/api/accounts/oauth/token, check thatchatgpt.tokens.use.directwas granted. - Refresh on the client: keep the credential (client id, refresh token, expiry) in the BYOK keyring. A helper refreshes the access token before it expires and writes it into the
openaislot. The relay sees an ordinaryx-byok-openaibearer value.
- Start: dynamic client registration (
- No adapter change. Docs explain the SIWC Responses limits (
store: false,stream: true, notemperature/max_output_tokens/metadata/previous_response_id, no hosted tools). ts-react-chat: "Continue with ChatGPT" button in the BYOK key dialog.- Docs: BYOK page and OpenAI adapter page. Unit tests for the helpers.
Constraints
- OpenAI allows this only for open-source and locally hosted apps. Hosted apps need OpenAI's interest form.
- The redirect must be
127.0.0.1(notlocalhost) with the path/auth/callback. - Access tokens last 1 hour. Refresh tokens last 30 days and rotate on every refresh.
- Lenguaje dominante
- TypeScript
- Estrellas
- 3.1k
- Forks
- 340
- Merge medio
- 2 d 7 h
- PR fusionados (30 d)
- 175
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 TanStack/ai
-
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
update elevenlabsPosiblemente ocupada @tombeckenham la tomó hace 1 día. Abiertohas-pr waiting-on: maintainer
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
TanStack/ai#1564 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
onAfterToolCall failure records a second, contradictory result for a successful server toolPosiblemente ocupada @AlemTuzlak la tomó hace 1 día. Abiertohas-pr waiting-on: maintainer
TanStack/ai#1558 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
SSE and NDJSON response streams drain unread sources without backpressurePosiblemente ocupada @tombeckenham la tomó hace 1 día. Abiertohas-pr waiting-on: maintainer
TanStack/ai#1556 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Solid useChat drops earlier turns after a reactive request option changesPosiblemente ocupada @AlemTuzlak la tomó hace 1 día. Abiertohas-pr waiting-on: maintainer
TanStack/ai#1552 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de TanStack/ai
Issues similares
-
Mend: dependency security vulnerability untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
opensearch-project/security-dashboards-plugin#2545 ·
Los mantenedores suelen responder en 1 día
-
Add: Dream TR SDAbiertocheck:passed streams:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
doctor integrity sample scans soft-deleted pages on Postgres (batch path has no deleted_at filter)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
SocialGouv/egapro#4672 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
area:agents area:tui bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
anthropics/claude-code#98358 ·
Los mantenedores suelen responder en 1 día