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

Function buildDaemonHttpAuthHeaders

src/daemon/http-contract.ts:12–19  ·  view source on GitHub ↗
(token: string | undefined)

Source from the content-addressed store, hash-verified

10}
11
12export function buildDaemonHttpAuthHeaders(token: string | undefined): Record<string, string> {
13 const normalizedToken = token?.trim();
14 if (!normalizedToken) return {};
15 return {
16 authorization: `Bearer ${normalizedToken}`,
17 'x-agent-device-token': normalizedToken,
18 };
19}

Callers 9

buildUpstreamHeadersFunction · 0.90
uploadLegacyArtifactFunction · 0.90
requestUploadPreflightFunction · 0.90
finalizeDirectUploadFunction · 0.90
downloadRemoteArtifactFunction · 0.90
readDaemonHttpHealthFunction · 0.90
sendHttpRequestFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…