-
-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"FirebaseError: Missing or Insufficient permissions" thrown any time user is logged on #1049
Comments
This is potentially because of a query associated with the user profile - are you using the |
Yeah, it appears that in the code sandbox you are using the following in your config: userProfile: "users",
useFirestoreForProfile: true, This means you will need the following rules in order for the user account matching the user's UID in
Please reach out if that ends up not fixing your issue - I have updated the docs to include a note about the required rules when using this setting (will go out with v3.9.0) |
* fix(auth): prevent throw in `logout` when database is not setup (#1042) - @ssdns * fix(types): fix `reloadAuth` argument type and duplicate of `endBefore` (#1031) - @ MatthewDailey * fix(types): fix argument type for `login` with credentials (#1045) - @AlexanderArvidsson * fix(types): add back `FirestoreStatics` to `ExtendedFirestoreInstance` (#1030) * fix(core): add deprecation message `enableLogging` config option * chore(docs): add note about required rules for profile settings (#1049) Co-authored-by: Matthew Dailey <interactivexrobot@gmail.com> Co-authored-by: Alexander Arvidsson <alexander@arvidson.nu> Co-authored-by: shishido <ssdns@users.noreply.github.com>
seems to have fixed the issue. Thanks !!! |
What is the current behavior?
When I apply Firestore rules to a collection like so:
Firebase throws the following error:
FirebaseError: Missing or insufficient permissions.
This occurs on any component that uses
useFirebase
,useFirestoreConnect
or thefirestoreConnect
regardless of whether the user is reading the "experts" collectionIf the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox or similar.
Code pen - https://codesandbox.io/s/react-redux-firebase-permissions-problem-09pqg
How to reproduce:
The Codepen is connected to a firestore instance with the rules above. App, Store, and LoginPage are implemented according to react-redux-firestore doc examples.
What is the expected behavior?
No error is thrown.
Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?
Environment:
Dependencies:
Cases that worked:
The text was updated successfully, but these errors were encountered: