I am currently developing an authentication module for my application. The user provides his phone number, and an SMS message with his pin code is sent to him.
The user enters a code, and if valid, his phone number is authenticated. Perhaps you know WhatsApp, it’s not at all the same when you launch the application for the first time.
However, if the user puts a new SIM card in his phone, he must authenticate it again.
I want to know how to determine if a phone number has changed. I read in another question that it is impossible to determine the phone number myself. But, for example, WhatsApp recognizes that there is a different phone number.
Any ideas?
source
share