Here’s the scenario I’m trying to create:
From my application, an owner can enter an email address to send an invite to someone.
This invite either includes a link with a couple of querystring parameters, or a form that submits data along with it, and this data needs to be entered into the new users app_metadata and set an Auth0 Role.
The issue is that we have an application with multiple companies that use it and the invite needs to go out to someone and have a context of which company sent the link so they are automatically added.
It’s not enough for a user to just sign up with Auth0 because there is no way to associate the user with a company and therefore the user would just login to the page and see nothing contextual.
We also need to apply a custom Auth0 Role at the same time.
What is the best method to achieve this?