fix: use correct auth field in gateway WebSocket handshake

OpenClaw gateway configured with auth.mode='token' expects
{ token: '...' } in the connect handshake params, not { password: '...' }.
Sending 'password' causes the gateway to reject the handshake, resulting
in a disconnect→reconnect loop that floods the error log.

Tested against OpenClaw gateway v2026.2.25 with auth.mode='token'.
This commit is contained in:
rezero-household 2026-03-01 14:46:04 -08:00
parent e77ec4cf2d
commit 2eec86cc87
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ export function useWebSocket() {
role: 'operator',
scopes: ['operator.admin'],
auth: authTokenRef.current
? { password: authTokenRef.current }
? { token: authTokenRef.current }
: undefined
}
}