Hyperlaunch

Team System

A lot of apps require a team system at some point, picture different users that need to access the same private ressource. If you're Saas is B2B, you'll most likely need one at some point.

Team system deeply depends on your business logic. In hyperlaunch you'll find a solid base including invitations and access control. Everytime an account is created, we create a team using events in auth.ts

From their profile section, user can invite a new member and assign them a role. those roles are not plugged to anything yet, but you can use them to customize access control.

The invitation behavior is straightforward, a user can invite another user by email. If that invitee is already using your Saas he will be added right away. If not, an organizationInvites record is created and an invitation email is sent. When the user create an account, we look for pending invitation and add the user to the team if needed.

Check out auth.ts for more details.