[BUG] Chrome extension bridge "Invalid token or user mismatch" despite matching account/org (Team account)
Resolved 💬 3 comments Opened Mar 6, 2026 by kenigteh Closed Mar 6, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Chrome extension bridge rejects connection with "Invalid token or user mismatch" (WebSocket close code 1008), even though both tokens (Claude Code and Chrome extension) resolve to the same account and organization via /api/oauth/profile. The bridge at wss://bridge.claudeusercontent.com repeatedly rejects the connection with exponential backoff indefinitely.
What Should Happen?
The Chrome extension should successfully pair with Claude Code since both tokens belong to the same user and organization.
Error Messages/Logs
[Claude in Chrome] ensureConnected called, connected=false, authenticated=false, wsState=3
[Claude in Chrome] Fetching user ID for bridge connection
[Claude in Chrome] Fetching OAuth token for bridge connection
[Claude in Chrome] Connecting to bridge: wss://bridge.claudeusercontent.com/chrome/<ACCOUNT_UUID>
[Claude in Chrome] WebSocket connected, sending connect message
[Claude in Chrome] Bridge received: {"type":"error","error":"Invalid token or user mismatch"}
[Claude in Chrome] Bridge connection closed (code: 1008, duration: 0ms)
[Claude in Chrome] Bridge reconnecting in 30000ms (attempt 8)
Both tokens verified via /api/oauth/profile:
- account.uuid: identical on both sides
- organization.uuid: identical on both sides
- organization.type: claude_team
- application differs: "Claude Code" vs "Claude for Chrome"
Steps to Reproduce
- Have a Team account (claude_team) on claude.ai
- Install Chrome extension v1.0.57
- Log into claude.ai in Chrome with the Team account
- Run
claude auth loginand authenticate with the same Team account - Try to use any mcp__claude-in-chrome__ tool
- Bridge connection fails with "Invalid token or user mismatch"
- claude auth logout + login does not help
- Restarting Chrome does not help
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.58
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
Verified on client side:
- Extension enabled in only one Chrome profile
- Claude Desktop is NOT running
- CLAUDE_CODE_OAUTH_TOKEN is NOT set
- Native messaging host configured correctly, process running (spawned by Chrome)
- chrome_ext_bridge_enabled: true in extension LevelDB storage
- user:mcp_servers scope present in OAuth token
- Chrome 145.0.7632.159, Ubuntu 24.04, Linux 6.8.0-59-generic
Possibly related to #25736, #12740.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗