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

Function buildUploadTicketAuthHeaders

src/daemon/upload-http.ts:291–296  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

289}
290
291function buildUploadTicketAuthHeaders(token: string): Record<string, string> {
292 return {
293 authorization: `Bearer ${token}`,
294 'x-agent-device-token': token,
295 };
296}
297
298function resolveHttpRequestBaseUrl(req: http.IncomingMessage): string {
299 const host = typeof req.headers.host === 'string' ? req.headers.host : '';

Callers 1

handleUploadPreflightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…