(apiKey: string)
| 4 | * Builds the standard headers for Brex API requests. |
| 5 | */ |
| 6 | export function buildBrexHeaders(apiKey: string): Record<string, string> { |
| 7 | return { |
| 8 | Authorization: `Bearer ${apiKey}`, |
| 9 | Accept: 'application/json', |
| 10 | 'Content-Type': 'application/json', |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * Parses a Brex API response body, throwing a descriptive error for non-2xx responses. |
no outgoing calls
no test coverage detected