A question about firebase auth for authentication via phone number.
I was wondering if it was possible to link a "Phone Provider" to say a Google Auth Provider. There is no explicit mention of it in the docs.
The thing that had me scratching my head is - the Link Multiple Auth Provider docs talk about starting to authenticate with the new provider (phone provider) you want to link to the existing provider (google provider), but then stopping short of calling FirebaseAuth.signInWithXXX.
So in theory that would work like:
- The user logs in via google (google idp provider)
- The user kicks off the phone auth (phone number provider) - and gets an sms message.
- The SMS should trigger an automatic verification in some cases or he types in the 6 digit code from the sms message
- But based on the docs on account-linking, rather than call
FirebaseAuth.signInWithXXXhere, we can instead callFirebaseUser.linkWithCredential(PhoneAuthCredential).
So i was wondering if a phone number verification is considered complete without an explicit sign-in with the PhoneAuthCredential ?