Widget: fetch signed-in visitor tokens when a session is requested
Maintainer thường phản hồi trong vòng 1 ngày
@piyusshhjangid đang làm issue này rồi.
Từ ngày 29/10/2026.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 63/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- api, authentication
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 13
- Fork
- 7
- Merge trung bình
- 3 giờ 39 phút
- Pull request đã merge (30 ngày)
- 275
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codercops/chatcops
-
Widget: support CSP nonces for injected stylesCó thể đã có người làm @piyusshhjangid đã nhận hôm nay. Đang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
codercops/chatcops#460 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Server: validate `rateLimit.windowMs` before creating the limiterCó thể đã có người làm @ashutoshpalhare đã nhận hôm nay. Đang mở
codercops/chatcops#452 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Widget: a "New reply" button when the visitor has scrolled upCó thể đã có người làm @srujankaleru2007 đã nhận 1 ngày trước. Đang mởenhancement hacktoberfest widget
codercops/chatcops#420 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chatcops test: --url to test a deployed serverCó thể đã có người làm @srujankaleru2007 đã nhận 1 ngày trước. Đang mởenhancement hacktoberfest testing
codercops/chatcops#419 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chatcops test: GitHub Actions reporterCó thể đã có người làm @mohithreddydonala37 đã nhận 1 ngày trước. Đang mởenhancement hacktoberfest testing
codercops/chatcops#417 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codercops/chatcops
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
CopilotKit/openmuse#215 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
b:minor bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
software-mansion/argent#1698 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
e2e-failure ready-to-code
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
redhat-developer/rhdh-plugin-export-overlays#4624 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày