(options)
| 2382 | this.password = password; |
| 2383 | } |
| 2384 | prepareRequest(options) { |
| 2385 | if (!options.headers) { |
| 2386 | throw Error('The request has no headers'); |
| 2387 | } |
| 2388 | options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`; |
| 2389 | } |
| 2390 | // This handler cannot handle 401 |
| 2391 | canHandleAuthentication() { |
| 2392 | return false; |
no test coverage detected