Commit eac69cde authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Send a real access token to the Rooms websocket instead of a bare user_id

Matches the backend fix: connectToRoom() now takes the access token
(getAccessToken() from RoomView) instead of a client-known userId, since
the server verifies it before accepting the connection rather than trusting
whatever id is passed. getCurrentUserId() (api/jwt.ts) is still used for
local "is this me" UI comparisons only - never sent back as a trust claim;
updated its comment, which was stale since Channels' own auth fix.

Roadmap updated to reflect both security gaps are now fixed.
Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent 9958e8e1
Pipeline #1084 canceled with stage