I'm not sure about this issue I have, so maybe you can help me. I have build a 2-Step Verification for an android app.
- User sends his phone number from the app to the server via https
- Server sends authentication code back to user via SMS (based on
Twilio/PHP) - User receives the code and can authenticate himself on the server
At that point I can be sure that the user is the authenticated owner of the smartphone where the code has been sent.
If the user now restarts his phone and his app afterwards, how can I ensure that this user is still the same authenticated user? Do I have to send some kind of credentials to the server each time based on the authentication code? Is this a safe and proper way to do this?
Thank you and best regards!
Dopser