According to the official docs, once the user has been created, the UID is the phone number itself.
https://firebase.google.com/docs/auth/ios/phone-auth#sign-in-the-user-with-the-verification-code
This doesn't seem very secure, as we often use the user.uid
in many other fields across the app.