Invite strategies
An Invite Strategy
determines what happens when a user is invited to a document who is not a member of your database.
An invite strategy can be set with the unknownInviteStrategy
setting. See below for the different options.
#
Create userThe CREATE
invite strategy will add unknown invited users to your Users
table as an anonymous user.
#
IgnoreThe IGNORE
invite strategy will ignore any invites to users that are no in your database.
#
Custom invite strategyYou can pass a function to the unknownInviteStrategy
to handle the unknown invite on your own.
The function will be passed the invited users email.
If you return null
from your custom function, no further action will be taken (an invite will not be sent to the user by the server). If you return a userID, then an invite will be sent to that user as normal.
Examples
Sending your own custom invite email.
Creating a user and sending an invite