* Builds the Azure DevOps PAT auth header. ADO PATs authenticate via HTTP Basic * with an empty username and the token as the password.
(accessToken: string)
| 89 | * with an empty username and the token as the password. |
| 90 | */ |
| 91 | function patAuthHeader(accessToken: string): string { |
| 92 | return `Basic ${Buffer.from(`:${accessToken}`).toString('base64')}` |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Normalizes the configured content type, defaulting to wiki pages. |
no test coverage detected