Skip to main content
If the tenant is in invite-only mode, validate the invitation before rendering the registration form - not after a rejected register() call. Read whichever the invite link/form carries (a token from an emailed link, or a shareable code) and pass it in:
Or with a code instead of a token:
Once validated, pass the same token/code to register() (invitationToken/invitationCode params) to complete signup. See implementing an invite-only SaaS for the full flow, and the server SDK for creating/listing/revoking invitations (admin-only, not exposed here).