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.
bwh-auth is installed from GitHub Releases:
pnpm add https://github.com/bherila/auth/releases/download/bwh-auth-v0.1.1/bwh-auth-0.1.1.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.