Files
better-auth/packages/core
Gustavo Valverde dd9769907c feat(core): add plugin contribution protocol
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.
2026-05-31 17:17:59 +01:00
..

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