Install dependencies
api
under the app
folder and a folder called [...nile]
under it:nile
instance to your application:List invites for a user
Basic invite user action
Callback after invite
/your-callback-handler
could check if the user has logged in by virtue of the nile.users.getSelf()
function.If they are not logged in, send them to a sign up page for user creation or sign in.If they are logged in, we check to be sure they are the same user. If not, they need to switch users (their current signed in user does not have access to the tenant, after all)Lastly, if they are signed in as the user that was invited, they can see a list of invites on that tenant.