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
I've been banging my head against this firestore.rules problem for a few days now. I can't figure out where things are going wrong.
The problem seems to show up only when using the emulators. If document rules are applied that check whether a user is authenticated, permissions are denied even though the user is signed in. This however does not happen when using real firestore. This branch on my fork should have a reproducible sample:
Am I doing something wrong? I first thought it was a react-firebaseui issue, so you will see I even did a version bump on that to see if that fixed things... I have seen other people mention problems with the Auth emulator in other issues, but so far got no clues how to fix this. I'm guessing it may be related to how every library wants to keep their own instance of firebase for themselves. Any help welcomed
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I've been banging my head against this
firestore.rules
problem for a few days now. I can't figure out where things are going wrong.The problem seems to show up only when using the emulators. If document rules are applied that check whether a user is authenticated, permissions are denied even though the user is signed in. This however does not happen when using real firestore. This branch on my fork should have a reproducible sample:
https://github.com/conrado/reactfire/tree/emulators-auth-firestore-permissions-issue
Am I doing something wrong? I first thought it was a
react-firebaseui
issue, so you will see I even did a version bump on that to see if that fixed things... I have seen other people mention problems with the Auth emulator in other issues, but so far got no clues how to fix this. I'm guessing it may be related to how every library wants to keep their own instance of firebase for themselves. Any help welcomedBeta Was this translation helpful? Give feedback.
All reactions