You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change link in email invitation to something similar to http://localhost:3000/[email protected] (sender user email)
Note the referral query parameter
Whenever someone visits that link, the frontend would be able to identify which link they clicked from and who referred them ([email protected])
Invitation Flow
When a user sends this email, we first check if the email we're sending to already exists in our platform. If yes, no problem create an Invitation model
If they don't exist, don't create a model but proceed in sending email
What happens if they're not part of the platform yet
Save the referral email in a state
First, in the /register route, on the frontend we want to identify if the user is already logged in.
If logged in, redirect into /messenger
If not logged in, we'll prompt you to sign up. When you submit the sign up form, you also pass in a referral attribute to the backend
On the /signup controller if a referral is passed in on User creation, it will also create an invitation
The text was updated successfully, but these errors were encountered:
Change link in email invitation to something similar to
http://localhost:3000/[email protected]
(sender user email)Whenever someone visits that link, the frontend would be able to identify which link they clicked from and who referred them ([email protected])
Invitation Flow
What happens if they're not part of the platform yet
/register
route, on the frontend we want to identify if the user is already logged in.The text was updated successfully, but these errors were encountered: