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:
parent
e77ec4cf2d
commit
2eec86cc87
|
|
@ -146,7 +146,7 @@ export function useWebSocket() {
|
|||
role: 'operator',
|
||||
scopes: ['operator.admin'],
|
||||
auth: authTokenRef.current
|
||||
? { password: authTokenRef.current }
|
||||
? { token: authTokenRef.current }
|
||||
: undefined
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue