capawesome-team / capacitor-firebase

⚡️ Firebase plugins for Capacitor. Supports Android, iOS and the Web.

Home Page:https://capawesome.io/plugins/firebase/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat(authentication): return `email` property of `FirebaseAuthUserCollisionException`

DontGiveAFck opened this issue · comments

Plugin(s)

  • Analytics
  • App
  • App Check
  • Authentication
  • Crashlytics
  • Cloud Firestore
  • Cloud Messaging
  • Cloud Storage
  • Performance
  • Remote Config

Current problem

On login account-exists-with-different-credential error might happen, in this case we need to know user email that signInWithCredential method throws in FirebaseAuthUserCollisionException exception, so we can use it with fetchSignInMethodsForEmail method as mentioned in this issue: #592

Preferred solution

signInWithCredential will pass email property to Capacitor js scope on FirebaseAuthUserCollisionException exception

Alternative options

No response

Additional context

No response

Before submitting