GitHub

Auth

v5.0.1Feature Package
Auth feature with UI and Supabase integration

Installation

pnpm add @corew500/feature-auth

What's Included

This feature package includes 8 components:
ComponentDescriptionCategory
Change Password FormForm for changing user passwordauth-forms
Forgot Password FormForm for requesting password resetauth-forms
Login FormUser login form with email and passwordauth-forms
Magic Link FormPasswordless login form that sends magic link via emailauth-forms
OTP Verify FormOne-time password verification formauth-forms
Reset Password FormForm for resetting password with tokenauth-forms
Signup FormUser registration formauth-forms
Two Factor FormTwo-factor authentication verification formauth-forms

Component Previews

Change Password Form

Loading...

Forgot Password Form

Loading...

Login Form

Loading...

Magic Link Form

Loading...

OTP Verify Form

Loading...

Reset Password Form

Loading...

Signup Form

Loading...

Two Factor Form

Loading...

Export Map

Available subpath imports for this package:
SubpathTypeImport
.clientimport { ... } from "@corew500/feature-auth"
./serverserverimport { ... } from "@corew500/feature-auth/server"

UI Dependencies

Shared Components
These components from @corew500/ui are used by this feature package and are documented separately.
change-password-formforgot-password-forminput-otplogin-formotp-verify-formpassword-inputreset-password-formsignup-formtwo-factor-form

Recent Changes

v5.0.0
### Patch Changes

- Updated dependencies [8956ee0]
- Updated dependencies [8956ee0]
  - @corew500/ui@1.9.0
  - @corew500/observability@7.0.0
v4.0.0
### Patch Changes

- Updated dependencies [d473bc2]
- Updated dependencies [a472868]
  - @corew500/ui@1.8.0
  - @corew500/observability@6.0.0
v3.0.0
### Minor Changes

- 7e50ffa: Add `createPasswordValidator` utility with configurable password policy rules. Returns both an imperative `validate` function and a Zod schema for use with form validation libraries. Supports `minLength`, `requireUppercase`, `requireLowercase`, `requireDigit`, and `requireSpecial` options. Also exports `PasswordPolicy` type.

### Patch Changes

- Updated dependencies [2d8a02c]
- Updated dependencies [7e50ffa]
- Updated dependencies [6e9c752]
- Updated dependencies [7e50ffa]
  - @corew500/ui@1.7.0
  - @corew500/infra-supabase@0.4.0
  - @corew500/observability@5.0.0
v2.2.8
### Patch Changes

- e6ecfad: Add optional structured logging to all feature packages

  Each server action and service function now accepts an optional `logger?: Logger` parameter (imported as a type from `@corew500/observability`). Callers can inject a logger to get structured audit trails for auth events, form submissions, assessment scoring, and event registration flows. No logger is required — all existing call sites are unaffected.
v2.2.7
### Patch Changes

- f11357f: Deliver last 3 changelog versions to consuming projects via postinstall

  The `setup-claude-skills.mjs` postinstall script now extracts the last 3 versions from each package's CHANGELOG.md and writes them to `.claude/package-updates/<package-name>.md` in the consuming project. This makes release notes discoverable by AI agents working in downstream apps.

- Updated dependencies [f11357f]
- Updated dependencies [f241feb]
  - @corew500/ui@1.6.6
  - @corew500/infra-supabase@0.3.0