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 invite strategy will add unknown invited users to your
Users table as an anonymous user.
IGNORE invite strategy will ignore any invites to users that are no in your database.
You 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.
Sending your own custom invite email.
Creating a user and sending an invite