Powerful invitation system for Better Auth
Add a complete invitation system to your Better Auth application. Create, send, and manage invites for user sign-ups and role upgrades with built-in security and flexibility.
Quick start
Get the invite plugin up and running in your Better Auth project in minutes.
Install the plugin
Add the Better Auth Invite Plugin to your project:
Requires Better Auth v1.4.13 or newer.
Key features
Everything you need to build a complete invitation system.
Email invitations
Send invitation emails with customizable handlers and templates.
Role-based access
Automatically assign or upgrade user roles when invites are accepted.
Public & private invites
Create targeted invites for specific users or shareable codes for anyone.
Usage tracking
Track invitation usage and enforce maximum uses per invite.
Multiple token types
Support default tokens, short codes, or custom token generators.
Hooks & callbacks
Customize behavior at every step with comprehensive lifecycle hooks.
Explore the documentation
Learn how to integrate and customize the invite plugin for your use case.
Core concepts
Understand how the invitation system works under the hood.
Setup guides
Step-by-step guides for server and client configuration.
API reference
Complete API documentation for all plugin options and methods.
Examples
Real-world examples for common invitation workflows.
Ready to get started?
Follow our quickstart guide to add the invitation system to your Better Auth project in minutes.
Get Started