Introduction
What Better Enrollment is and what it gives you.
Better Enrollment is a plugin for Better Auth that makes invitations the front door of your app. Run fully invite-only, hand out shareable invite links, or use invites as role and organization grants in an open app.
Pick your front door
The plugin runs in one of two modes, auto-detected from your Better Auth config, and every invite works the same way in both.
- Email, OAuth, and password-reset sign-ups are blocked
- Magic-link sign-ups are detected and guarded
- Redeeming an invite is what creates the account
- Invites merge roles into new or existing accounts
- Organization invites seat members or found new orgs
- Same invite page, same API, no separate flow
The life of an invite
A single ?token= page and one redeem call handle every invite kind in both modes. The full lifecycle is on How it works.
Everything included
Invite-only mode
Close every sign-up route and let people in only through invitations.
Open mode
Invitations become role and organization grants for self-serve sign-ups.
Private invites
Email-bound, single use, verified on accept.
Public invites
Shareable links with use caps, expiry, and revocation.
Organization onboarding
One link joins an org, or lets the invitee found their own.
Seat limits
Per-org caps with pending-invite reservations and subscription hooks.
Security first
Hashed tokens, atomic race-safe redemption, no email oracles.
Audit trail
Append-only record of who invited whom and who redeemed what.
One redemption page
A single token page and one redeem call handle every invite kind in both modes.
Adapter-agnostic
Works with any Better Auth database adapter, no extra infrastructure.
Get started
Last updated on