You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the error thrown by the login method is a generic js-Error with the message Login error: invalid credentials. The original error by the Firebase Sdk is silenced.
The underlying Firebase error should be catchable to be able to make more informed decisions about the error. E.g. the error could be a auth/user-not-found as the user may have been deleted.
I propose the just re-throw the original Firebase error or at least offer a way to access it (e.g. using verror).
The text was updated successfully, but these errors were encountered:
Current Behaviour
The underlying Firebase Auth errors thrown by the firebase package are silenced and a generic error is throws. Example:
the error thrown by the
login
method is a generic js-Error with the messageLogin error: invalid credentials
. The original error by the Firebase Sdk is silenced.See:
react-admin-firebase/src/providers/AuthProvider.ts
Lines 26 to 44 in e3b1c01
Expected Behaviour
The underlying Firebase error should be catchable to be able to make more informed decisions about the error. E.g. the error could be a
auth/user-not-found
as the user may have been deleted.I propose the just re-throw the original Firebase error or at least offer a way to access it (e.g. using verror).
The text was updated successfully, but these errors were encountered: