bherila / auth-laravel
Shared Laravel authentication services for BWH applications.
Requires
- php: ^8.2
- illuminate/auth: ^12.0 || ^13.0
- illuminate/contracts: ^12.0 || ^13.0
- illuminate/database: ^12.0 || ^13.0
- illuminate/hashing: ^12.0 || ^13.0
- illuminate/http: ^12.0 || ^13.0
- illuminate/mail: ^12.0 || ^13.0
- illuminate/queue: ^12.0 || ^13.0
- illuminate/routing: ^12.0 || ^13.0
- illuminate/support: ^12.0 || ^13.0
- illuminate/validation: ^12.0 || ^13.0
- symfony/uid: ^7.0
- web-auth/webauthn-lib: ^5.2
Requires (Dev)
- orchestra/testbench: ^10.0
This package is not auto-updated.
Last update: 2026-06-19 23:18:57 UTC
README
Shared authentication packages for BWH Laravel/Vite applications.
This repository contains:
ui: pnpm packagebwh-authfor React auth UI and browser WebAuthn helpers.php: Composer packagebherila/auth-laravelfor Laravel auth services, passkeys, migrations, routes, and extension contracts. Its manifest is the repository-rootcomposer.json(required for Composer VCS resolution); the source lives underphp/.
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 php/README.md.
UI Installation
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.tgz
Each consuming app injects its own shadcn/Base UI components into bwh-auth.
UI Release
From ui/:
pnpm release patch
The script builds, packs, tags, uploads the release asset with gh, and prints
the tarball URL to use in consumers.
Repositories
This auth repository is separate from the bwh-ui repository under /Users/bwh/proj/ui.