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
It seems like firebase-mock may be providing the wrong shape of return data for the suite of createUser* functions (or I'm misusing firebase-mock 😅) The difference is that firebase-mock is returning something that resembles firebase.User or firebase.UserInfo instead of firebase.auth.UserCredential.
I believe it should be returning data shaped like UserCredential, which has the UserInfo nested inside a user member.
Here are the relevant types from Firebase Auth (from the JS SDK).
It seems like
firebase-mock
may be providing the wrong shape of return data for the suite of createUser* functions (or I'm misusingfirebase-mock
😅) The difference is thatfirebase-mock
is returning something that resemblesfirebase.User
orfirebase.UserInfo
instead offirebase.auth.UserCredential
.I believe it should be returning data shaped like
UserCredential
, which has theUserInfo
nested inside auser
member.Here are the relevant types from Firebase Auth (from the JS SDK).
...where
firebase.auth.UserCredential
has the following shape:https://github.com/firebase/firebase-js-sdk/blob/master/packages/auth-types/index.d.ts#L314
The text was updated successfully, but these errors were encountered: