Login helper · @houses/lighthouse-login-helpers
authenticateBasicAuth
Answer an app’s HTTP basic auth challenge with Puppeteer’s built-in authentication.
await authenticateBasicAuth(page, 'user', 'pass');Calls page.authenticate, so the browser answers the challenge at the network layer instead of sending a fixed header. This is App basic auth on the audited app.