* Builds the standard JSON request headers carrying the Sentry auth token.
(accessToken: string)
| 174 | * Builds the standard JSON request headers carrying the Sentry auth token. |
| 175 | */ |
| 176 | function authHeaders(accessToken: string): Record<string, string> { |
| 177 | return { |
| 178 | Authorization: `Bearer ${accessToken}`, |
| 179 | 'Content-Type': 'application/json', |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * Reads the `cursor` of the `rel="next"` link from a Sentry `Link` header. |
no outgoing calls
no test coverage detected