mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 23:53:17 -05:00
Plugins can extend a host plugin without a core change. A plugin declares
`contributes: { "<host-id>": { ... } }`, typed via the host-augmented
`ContributionContracts` interface, plus an optional `requires` list validated
at startup before any init runs. A host collects contributions with
`ctx.getContributions(hostId)` in its init, reading static declarations off the
plugin array so the result is independent of plugin registration order.
Better Auth Core
Core utilities and types for Better Auth — the most comprehensive authentication framework for TypeScript.
Installation
npm install @better-auth/core
Documentation
For full documentation, visit better-auth.com.
License
MIT