Widget: fetch signed-in visitor tokens when a session is requested
Los mantenedores suelen responder en 1 día
@Saifjafri212213 ya está trabajando en esto.
Desde el 30/10/2026.
- #476 de @Saifjafri212213 — fusionado
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 63/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- api, authentication
Línea de trabajo
Start by locating the widget’s /session request and the existing userToken option, then read the nearby tests and configuration docs. Add an optional async provider while preserving static-token behavior, send the resolved token only to the configured ChatCops API, and keep signing secrets on the host server. Done means tests cover fresh tokens, provider failures, and static tokens, with the provider documented.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What problem would this solve?
The widget accepts userToken as a fixed string and sends it when requesting a session. A page can stay open for a long time before the visitor opens the chat, so a short-lived signed token may expire before the first /session request. The server correctly rejects expired identity tokens, but the host page currently has no way to provide a fresh one at that point.
What would you like to happen?
Add an optional async token provider (or equivalent callback) that the widget calls when it is about to request /session, so the host can return a current signed token. Keep the existing string userToken behavior backwards compatible, send the resolved token only to the configured ChatCops API, and document that signing secrets must remain on the host server. Add tests for fresh tokens, provider failures, and the existing static-token option.
Contributing
- I'd like to work on this myself
- Lenguaje dominante
- TypeScript
- Estrellas
- 13
- Forks
- 7
- Merge medio
- 3 h 28 min
- PR fusionados (30 d)
- 296
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 codercops/chatcops
-
Core README lists old default modelsPosiblemente ocupada @prakashNalla la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
codercops/chatcops#503 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Widget: theme.tokens to set any color or size token, and the full token table in the docsPosiblemente ocupada @Sreehita-here la tomó hoy. Abiertohacktoberfest
codercops/chatcops#500 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Widget: a header menu with New conversation, Download transcript and a privacy linkPosiblemente ocupada @anurag2787 la tomó hoy. Abiertohacktoberfest
codercops/chatcops#496 · 4 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Widget: keep a message sent while offline, and send it when the connection is backPosiblemente ocupada @Saifjafri212213 la tomó hoy. Abiertohacktoberfest
codercops/chatcops#495 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Widget: copy a completed assistant replyPosiblemente ocupada @piyusshhjangid la tomó hoy. Abiertohacktoberfest
codercops/chatcops#477 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de codercops/chatcops
Issues similares
-
area:cli bug P4
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
bug from-studio
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
esengine/DeepSeek-Reasonix#14868 ·
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
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
linxiv-dev/linXiv#384 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
vercel/ai#24302 · 1 comentario ·
Los mantenedores suelen responder en 1 día