Spaces:
Paused
Paused
Commit History
-
Fix WebSocket stale-token reconnect loop
dushyantsingh0 +1: Claude Sonnet 4.6Root cause: clients reconnected with the same near-expired access token after a disconnect, causing endless Signature has expired 403 rejections in a loop. Backend: - Add create_ws_ticket() in core/security.py - 60-second JWT with type ws_ticket - Add POST /api/v1/auth/ws-ticket/ endpoint - returns a fresh ticket for WS auth - Update _authenticate_ws() to accept both access and ws_ticket token types - Send close code 4001 on expired token so client can distinguish from 4003 Frontend (customer + internal TopBar): - connect() now calls POST /auth/ws-ticket/ before opening each WebSocket - axios interceptor silently refreshes access token first if needed - onclose: stop retrying on 4001/4003/1008, retry on network drops - Remove redundant upfront token expiry check Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>0243ced
-
backend stabilization
dushyantsingh0b7980f7
-
Beta 1.0: Pure Backend Release (Excluding Frontend)
dushyantsingh05eb4857