(username: string, password: string)
| 5 | * @returns Base64 encoded Basic Auth header value |
| 6 | */ |
| 7 | export function createBasicAuthHeader(username: string, password: string): string { |
| 8 | const credentials = Buffer.from(`${username}:${password}`).toString('base64') |
| 9 | return `Basic ${credentials}` |
| 10 | } |
no test coverage detected