Manager invites agent from the manager dashboard. This creates a user in mongo assigned to the manager. It generates an invite token and an signup url that is sent out in an email.
Agent clicks on signup link which fires off authentication call to api which searches for a mongo user record with token, firstname, lastname, and email. If one doesn't exist it returns an error and should disable auth0 signup. If it does exist, it should allow a user to signup
Successful auth0 login through signup after the invite token authentication should submit the user recored returned from token authentication and the auth0 token and profile to update the user record.
Context
This doesn't always work. At times the user_header object is not available on local storage.
Possible Implementation
We either need to fix this user_header issue or try to move invitation to auth0.
Detailed Description
The current invite flow is the following
Context
This doesn't always work. At times the user_header object is not available on local storage.
Possible Implementation
We either need to fix this user_header issue or try to move invitation to auth0.