Skip to content

Releases: OctopiAI/better-enrollment

Release list

v0.1.0

Choose a tag to compare

@FalconiZzare FalconiZzare released this 05 Aug 11:28
b826c4c

Better Enrollment v0.1.0

First public release. 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.

Highlights

  • Invite-only mode: closes every sign-up route (email, OAuth, password reset) so people get 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, with per-org seat limits, pending-invite reservations, and subscription hooks.
  • One redemption page: a single ?token= page and one redeem call handle every invite kind in both modes.
  • Security first: SHA-256 hashed tokens (~190 bits of entropy), atomic race-safe redemption, and no email or account oracles on any endpoint.
  • Audit trail: append-only record of who invited whom and who redeemed what.
  • Adapter-agnostic: works with any Better Auth database adapter, no extra infrastructure.

Installation

pnpm add @octopi-ai/better-enrollment

Then generate the schema and follow the Quick Start.

Links

- Documentation
- npm package

Published to npm with provenance via trusted publishing.