Closed
Description
My reactReduxFirebase Config:
reactReduxFirebase(firebase, {
userProfile: 'users',
useFirestoreForProfile: true,
enableLogging: false,
})
When I use Firestore for my profile, and I write any custom data to it and end up with a profile similare to this:
{
displayName: 'Rick Sanchez',
email: 'rick@rickandmorty.com',
membership: {
QvXyh688YNV29QuhCTXeOXnHt282: true,
T8Wh9CMHIxT1f9mA5oEETNrOOlt1: true,
}
}
When I logout and log back in my profile looks like this:
{
displayName: 'Rick Sanchez',
email: 'rick@rickandmorty.com',
}
I can get around this by changing my reactReduxFirebase Config to the following, but that is less than optimal:
reactReduxFirebase(firebase, {
userProfile: 'users',
useFirestoreForProfile: true, // Store in Firestore instead of Real Time DB
enableLogging: false,
updateProfileOnLogin: false,
})