My Firestore read requests are getting errored out. I believe that some sort of incorrect blacklisting has happened.
Environment: development
Purpose: To get a list of all documents in my Firestore collection named "auth"
Firestore rules:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth != null;
}
}
}
Code:
Solved! Go to Solution.
Based on inputs from the community, I realized that my rules were not permitting requests from unauthenticated users in the new login/registration pages which was exactly where the issue occurred.
I've updated my rules to,
rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /auth/{document=**} { allow read, write: if true; } } }