Add invalidated state to referrals. #1799
Closes https://gitlab.com/minds/engine/-/issues/1799
The referral will be marked invalid if the same phone number is used for multiple accounts.
This also fixes an issue where an invalid cookie will prevent logout
v read v
Open to ideas on why on my localstack, visiting http://localhost:4200/register?referrer=referraluser
I pick-up a cookie with the key referrer and the value referraluser%3F
This doesn't happen on prod but I'd sleep easier if you have any ideas.