Better Enrollment

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.

2Modes
4Invite kinds
1Redemption page
0Extra infrastructure

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.

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.

01CreateAn admin, an org member, or your server issues a private invite or a public link, with roles and org bindings attached.
02DeliverYou send the link through your own email delivery or share it directly. Tokens are hashed at rest and expire on schedule.
03RedeemThe invitee lands on your invite page. One call verifies the token, creates or activates the account, and writes the audit trail.

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

On this page