MCPcopy Create free account
hub / github.com/callstack/agent-device / readJsonRpcToken

Function readJsonRpcToken

src/remote/daemon-proxy.ts:370–377  ·  view source on GitHub ↗
(body: string)

Source from the content-addressed store, hash-verified

368}
369
370function readJsonRpcToken(body: string): string {
371 try {
372 const parsed = JSON.parse(body) as { params?: { token?: unknown } };
373 return typeof parsed.params?.token === 'string' ? parsed.params.token : '';
374 } catch {
375 return '';
376 }
377}
378
379function readJsonRpcId(body: string | undefined): unknown {
380 if (!body) return null;

Callers 1

resolveRequestTokenFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…