Instantiates a new AuthBasic verifier with target credentials.
The expected username.
The expected password.
Returns an Express-compatible API middleware. Validates the request headers against the configured Basic credentials.
The middleware function.
StaticfactoryInstantiates a new Basic Auth verifier.
OptionaluserOrConfig: anyUsername string, or a config object containing {user, pass}.
Optionalpass: stringPassword string.
The generated instance, or null if params are invalid.
A rudimentary Basic Authentication implementation (RFC 7617). Parses
Authorization: Basic <base64>headers for hardcoded credentials.