Is there a way to disable Android "instant verification" (automatically signing in) with Firebase Phone Auth? There is a way to disable "auto-retrieval" by setting the timeout of verifyPhoneNumber to 0 (Reference: https://firebase.google.com/docs/reference/android/com/google/firebase/auth/PhoneAuthProvider.html). However I cannot find a documented way to disable instant verification.
I am asking because of a potential security issue: removing the SIM card from a device still auto-signs in that user! In other words, a user using another person's old device could be able to sign in using their old phone number. Here are the reproduction steps:
- Be on Android, on a device with a functional SIM card
- Sign in using the number associated with that SIM card
- This triggers auto-sign-in
- Sign out
- Turn device off and remove SIM card
- Turn device back on and attempt signing in with that same number
Observed behavior: The user is auto-signed in, despite not having the appropriate SIM card
Expected behavior: If the user's device does not have a SIM card that is associated with the entered phone number, they are not auto-signed-in and an SMS text message is sent to that number.
