Skip to content

Commit 42b3c52

Browse files
committed
fix(ui): ensure nonce is always a string in gateway connect
1 parent 6298698 commit 42b3c52

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎ui/src/ui/gateway.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ export class GatewayBrowserClient {
169169
publicKey: string;
170170
signature: string;
171171
signedAt: number;
172-
nonce: string | undefined;
172+
nonce: string;
173173
}
174174
| undefined;
175175

176176
if (isSecureContext && deviceIdentity) {
177177
const signedAtMs = Date.now();
178-
const nonce = this.connectNonce ?? undefined;
178+
const nonce = this.connectNonce ?? "";
179179
const payload = buildDeviceAuthPayload({
180180
deviceId: deviceIdentity.deviceId,
181181
clientId: this.opts.clientName ?? GATEWAY_CLIENT_NAMES.CONTROL_UI,

0 commit comments

Comments
 (0)