(token: string | undefined)
| 10 | } |
| 11 | |
| 12 | export 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…