Better Invite 0.5 Release
We're excited to announce the release of Better Invite 0.5! 🎉
This is a major step forward for invite management, with new features and improvements to make your invite flows even more powerful and flexible.
To upgrade run:
npm install better-invite@0.5Then update your database schema by running one of the following commands:
npx @better-auth/cli migratenpx @better-auth/cli generate🚀 Highlights
New Name and Branding
As of version 0.5, the package has been renamed from better-auth-invite-plugin to better-invite. This change makes the plugin name more concise and easier to remember, it also helps to better differentiate it from the core better-auth package.
Multiple emails support
You can now send private invites to multiple email addresses in a single request, making it easier to onboard groups of users at once.
List invites
The new list invites API allows you to retrieve all pending (private) invites, with support for filtering by email, status, and pagination.
Removed sendUserRoleUpgrade
The sendUserRoleUpgrade option has been removed in favor of sendUserInvitation. This simplifies the API and reduces confusion, as role upgrades can now be handled through the same invitation flow.
Internal improvements
- The plugin is now a monorepo, with the base plugin in
/pluginand the docs in/docs. - Added a demo project in
/demoto showcase the plugin's features.
Version 0.5 introduces significant improvements to the invite management system, making it more robust and user-friendly.
As always, feedback and contributions are welcome :)