@xtandard/kit/auth/basic
@xtandard/kit/auth/basic — HTTP Basic authentication with scrypt password
hashes (hashPassword / verifyPassword). Uses node:crypto (Node, Bun,
Deno, Workers with nodejs_compat).
import { … } from "@xtandard/kit/auth/basic";Functions
Section titled “Functions”| Name | Summary |
|---|---|
basicAuth |
Create an HTTP Basic AuthProvider. |
hashPassword |
Hash a password with scrypt and a fresh random salt. |
verifyPassword |
Verify a candidate password against a digest produced by hashPassword. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
BasicAuthOptions |
Options for basicAuth. |
BasicAuthUser |
A configured user for basicAuth. |