createBasicAuthMiddleware(context) {
    if (!context.options.basicAuth) return undefined;
    const {username = ApiClient.DEFAULT_BASIC_AUTH_USERNAME, password} = context.options.basicAuth;
    if (!password) return undefined;

    return basicAuth({users: {[username]: password}, challenge: true});
  }
@param {{options: LHCI.ServerCommand.Options}} context
@return {import('express-serve-static-core').RequestHandler|undefined}