[firebase_auth]: error.credential is null on credential-already-in-use exception during apple sign in in web #12771
Labels
Needs Attention
This issue needs maintainer attention.
platform: web
Issues / PRs which are specifically for web.
plugin: auth
resolution: fixed
A fix has been merged or is pending merge from a PR.
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
Web
Description
Firebase auth in web returns a null credential value on a "credential-already-in-use" FirebaseAuthException during apple sign in.
This prevents the web app from being able to recover and continue with the sign in flow.
Notes:
This issue only happens on flutter web.
This does not happen during Google Sign in on flutter web.
It is working as expected (error.credential is not null) in flutter mobile (both android & ios)
Reproducing the issue
Make sure that you already have a firebase user linked to an apple account.
Then run the following code.
A new anonymous user will be created and make sure to sign in to the same apple account.
Here is a sample code:
Firebase Core version
2.30.1
Flutter Version
3.19.5
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
Here is a screenshot showing actual values of the FirebaseAutghException.
*Shows that credential is null
The text was updated successfully, but these errors were encountered: