Sivan
11/16/2020, 10:46 AMSivan
11/16/2020, 10:47 AMdawidhyzy
11/16/2020, 10:50 AMNuru
11/16/2020, 11:36 AMNuru
11/16/2020, 11:50 AMval options = PhoneAuthOptions.newBuilder(auth)
.setPhoneNumber(phoneNumber)
.setTimeout(60L,TimeUnit.SECONDS)
.setActivity(this)
.setCallbacks(callbacks)
.build()
PhoneAuthProvider.verifyPhoneNumber(options)
If you notice, there's a setCallbacks option... You can use that option to check if the number is verified and proceed with the authentication but in your case, you can just switch to the email authentication in callback since you were only interested in verifying the phone number.Nuru
11/16/2020, 11:53 AMSivan
11/16/2020, 11:53 AMSivan
11/16/2020, 11:55 AMSivan
11/16/2020, 11:57 AMsignInWithPhoneAuthCredential(credential)
and once the user is created, I can create another user with email and password and then link these two accounts.
My only concern is that this might shoot up the auth creation limits once we scale? Is this a wise option though?Nuru
11/16/2020, 12:01 PMNuru
11/16/2020, 12:02 PMSivan
11/16/2020, 12:42 PMZac Sweers
11/18/2020, 7:35 AM