Firebase Authentication's native implementation has typings for error messages, returning both an error code and a descriptive message. In order to handle errors effectively, it would be useful for these errors to also be provided in this plugin. E.g. FirebaseAuthentication.signInWithEmailAndPassword, it would be useful to be able to differentiate between invalid credentials and other errors such as "user deleted", etc.
Plugin(s)
Current problem
Firebase Authentication's native implementation has typings for error messages, returning both an error code and a descriptive message. In order to handle errors effectively, it would be useful for these errors to also be provided in this plugin. E.g.
FirebaseAuthentication.signInWithEmailAndPassword
, it would be useful to be able to differentiate between invalid credentials and other errors such as "user deleted", etc.See all available error codes & messages here: https://firebase.google.com/docs/reference/js/auth#autherrorcodes
Preferred solution
Pass on types and error objects in the same format as the Firebase auth library.
Alternative options
No response
Additional context
No response
Before submitting