Skip to content

Commit 0975377

Browse files
fix(client-runtime): typecheck device hub ticket request on main
#10677 and #11029 merged in succession without a textual conflict, but #11029 changed executeAuthenticatedEnvironmentHttpRequest to require a group and hand back a group-scoped client, while #10677's new deviceHubAccess.ts still called the full-API client. Pass the auth group and call webSocketTicket on the group client. Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent e1c94f7 commit 0975377

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/client-runtime/src/state/deviceHubAccess.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ export const resolveDeviceHubAccess = Effect.fn("clientRuntime.state.resolveDevi
5050
prepared: input.prepared,
5151
signer,
5252
remoteAuthorization,
53+
group: "auth",
5354
method: "POST",
5455
url: (httpBaseUrl) => environmentEndpointUrl(httpBaseUrl, "/api/auth/websocket-ticket"),
5556
timeoutMs: TICKET_TIMEOUT_MS,
56-
request: ({ client, headers }) => client.auth.webSocketTicket({ headers }),
57+
request: ({ client, headers }) => client.webSocketTicket({ headers }),
5758
});
5859
return {
5960
httpBase,

0 commit comments

Comments
 (0)