Usage const httpAuth = require('@dnode/http-auth')({ user: process.env.HTTP_AUTH_USER, password: process.env.HTTP_AUTH_PASSWORD, });