fix(openclaw-bridge): include nonce in device handshake params

The gateway expects device.nonce (the challenge nonce) to be echoed
back in the connect request. Without it the connection is rejected with
'device: must have required property nonce'.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-08 07:32:29 -07:00
parent 00a944c9a9
commit bb4b73f847
1 changed files with 1 additions and 0 deletions

View File

@ -164,6 +164,7 @@ export class OpenClawClient {
auth: { token: this.token },
device: {
id: this.deviceId,
nonce: nonce,
publicKey: pubKeyDer.toString('base64'),
signature: signature.toString('base64'),
signedAt: Date.now(),