Shared authentication packages for BWH Laravel/Vite applications.
This repository contains:
ui: npm packagebwh-authfor React auth UI and browser WebAuthn helpers.laravel: Composer packagebherila/auth-laravelfor Laravel auth services, passkeys, migrations, routes, and extension contracts.
The packages intentionally keep app-specific policy outside the shared core. Apps decide whether a user can log in, where they go after login, and how audit events are recorded.
Laravel apps that own their primary /login route must wire package opt-in features into that controller. For example, enabling the audit-log-backed throttle config does not by itself enforce lockout on a custom login controller; the app must call the Laravel package's throttle trait or contract before attempting credentials. See laravel/README.md.
bwh-auth is installed from GitHub Releases:
pnpm add https://github.com/bherila/auth/releases/download/bwh-auth-v0.2.0/bwh-auth-0.2.0.tgzEach consuming app injects its own shadcn/Base UI components into bwh-auth.
From ui/:
pnpm release patchThe script builds, packs, tags, uploads the release asset with gh, and prints
the tarball URL to use in consumers.
This auth repository is separate from the bwh-ui repository under /Users/bwh/proj/ui.