bherila/auth-laravel

Shared Laravel authentication services for BWH applications.

Maintainers

👁 bherila

Package info

github.com/bherila/auth

pkg:composer/bherila/auth-laravel

Statistics

Installs: 6 841

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v0.5.0 2026-06-14 00:53 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT f5707cd42df725342c5926b6b762199b939a5b56


README

Shared authentication packages for BWH Laravel/Vite applications.

This repository contains:

  • ui: pnpm package bwh-auth for React auth UI and browser WebAuthn helpers.
  • php: Composer package bherila/auth-laravel for Laravel auth services, passkeys, migrations, routes, and extension contracts. Its manifest is the repository-root composer.json (required for Composer VCS resolution); the source lives under php/.

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.