In order to ensure that players only use one account (and don't multibox) we are going to require that all accounts be linked to a phone number. When a user registers, they MUST provide a valid phone number. When they register, we should integrate with TWILIO (or some other SMS service) in order to send out a text message to the user's phone with a verification code. Create a random 6-8 character/digit code and send that to the user.
We will also then need to make a /api/v1/users/verifySocial endpoint. This endpoint should be able to verify every social platform
Solution
On registration generate a verification code
Integrate with Twilio (or another SMS platform) to send the user the verification code
Create a server endpoint to let user's verify the code for socials
Prevent unverified users from joining games
Make this a configuration option.
In development we should not send out SMS messages (it costs money to send them out).
Also, I do not want to recieve SMS messages while testing. Maybe while testing that the feature is OK, but not while testing other stuff
Enhancement Description
In order to ensure that players only use one account (and don't multibox) we are going to require that all accounts be linked to a phone number. When a user registers, they MUST provide a valid phone number. When they register, we should integrate with TWILIO (or some other SMS service) in order to send out a text message to the user's phone with a verification code. Create a random 6-8 character/digit code and send that to the user.
We will also then need to make a
/api/v1/users/verifySocial
endpoint. This endpoint should be able to verify every social platformSolution