[firebase_auth]: Can't use verifyPhoneNumber before updating the phone number? #12768
Closed
1 task done
Labels
blocked: customer-response
Waiting for customer response, e.g. more information was requested.
platform: android
Issues / PRs which are specifically for Android.
platform: ios
Issues / PRs which are specifically for iOS.
plugin: auth
resolution: user
This was a user issue, e.g. invalid configuration or code.
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
Android, iOS
Description
I aim to validate the new user’s phone number using
FirebaseAuth.instance.verifyPhoneNumber
before updating the phone number. However, I encountered the issue below using theFirebaseAuth.instance.verifyPhoneNumber
method while the user authenticated has already linked a phone number.Reproducing the issue
FirebaseAuth.instance.verifyPhoneNumber
method with a new phone number.Firebase Core version
2.29.0
Flutter Version
3.19.5
Relevant Log Output
[firebase_auth/provider-already-linked] [ERROR_PROVIDER_ALREADY_LINKED] - User can only be linked to one identity for the given provider
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
I would like to understand how I could verify the new user’s phone number before updating it.
The text was updated successfully, but these errors were encountered: