Skip to content

@xtandard/flags/auth/basic

HTTP Basic authentication: basicAuth, with scrypt password hashes (hashPassword, verifyPassword) or your own password verifier.

Entry point for the @xtandard/flags/auth/basic subpath export.

import { … } from "@xtandard/flags/auth/basic";
Name Summary
basicAuth Create an HTTP Basic AuthProvider. Unauthenticated requests get a WWW-Authenticate: Basic realm="xtandard-flags" challenge (or your realm).
Name Summary
BasicAuthOptions Options for basicAuth. realm defaults to "xtandard-flags".