Basic authentication plugin for Elysia v1.0.7. Provides HTTP Basic Auth middleware for the Elysia web framework (peer dependency elysia >= 0.7.1). Supports user-defined credentials, realm configuration, custom error messages, route exclusion via glob patterns, and optional error suppression. Last updated in 2024; no frequent releases. Differentiates by being purpose-built for Elysia with TypeScript types and Bun compatibility.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Package is ESM-only; CommonJS require will fail. Use ES import syntax.
BasicAuthConfig is a TypeScript type/interface; use type import to avoid runtime bundling.
BasicAuthUser is a TypeScript interface; use type import.
Sets up an Elysia server with basic auth middleware protecting all routes except /public/**
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.