Introduction
Introduction to the invite plugin
What is Better Invite?
Better Invite is a Better Auth plugin that adds a complete invitation system to your app, allowing you to create and manage invites for both new users and existing accounts.
The plugin is maintained by Sandy and is not officially affiliated with Better Auth.
How invites work
With better-invite, you can easily invite people to join your app or grant them specific roles. The system is flexible and designed to cover the most common invitation flows without adding unnecessary complexity.
There are two main types of invitations:
- Private Invitations: These are tied to a specific email address. Only the person who receives the invite at that email can accept it.
- Public Invitations: These can be used by anyone who has access to the invite link or code. They're perfect for broader campaigns or community-based access. For example, you might create a public invite that grants a
discord-memberrole to users who joined through your Discord server.
Features
Private and public invites
Send private invites to friends with custom roles
Security in mind
Built with security best practices
Role upgrade
Use an invitation to upgrade your role
Account creation
Use an invitation to create your account
Type safe
Fully typed with TypeScript support
Easy to implement
Get started in minutes
... and much, much more
License
The plugin is licensed under the MIT License
Acknowledgements
Inspired in the invite system from Max.
better-invite/better-invite
How is this guide?
Last updated on