feat(authentication): return `email` property of `FirebaseAuthUserCollisionException`
DontGiveAFck opened this issue · comments
Arsen commented
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
- I have read and followed the feature request guidelines.
- I have attached links to possibly related issues and discussions.