Login helper · @houses/lighthouse-login-helpers
basicAuthHeader
Build an Authorization header value for an app behind HTTP basic auth.
const header = basicAuthHeader('user', 'pass'); // 'Basic dXNlcjpwYXNz'Returns "Basic " plus the base64 of username:password, for configs that take extra request headers. This is App basic auth on the audited app, not the server basicAuth pair.