After some time, we decided that it was either unreliable, impossible, or really annoying to get a unique user ID without asking to fill out a field and actually register.
Therefore, we decided to use their encrypted phone numbers for the formatter using the following process:
- Request a phone number and international code * (+1, +32, etc.)
- Check phone number integrity programmatically
- If this is satisfactory, ask the user to check with a warning
- If everything is in order, send a PIN code and wait for confirmation.
- If applicable, register in the database.
Username: a formatted phone number (for example, +32495555556), and this line is then hashed into SHA-256, and finally, we store this extra-long line in the database and recognize all of them.
If you have any questions, please ask here so I can give some clarification. If you have a better idea, I will still be happy to hear that.
source share