Re: Firestore: Missing or insufficient permissions.

454 views
Skip to first unread message
Message has been deleted

Andreas B

unread,
Apr 6, 2022, 10:39:47 AM4/6/22
to Firebase Google Group
While it is not recommended for a production app, if you really just want to check whether the user is authenticated at all, the documentation suggests to check for request.auth != null, not request.auth.uid != null. Check if that changes anything.

On Tuesday, April 5, 2022 at 12:00:29 AM UTC+2 levia...@gmail.com wrote:
Hi everybody from Ukraine!
I'm going crazy now!
I'm making an android app using Firestore. Everything was fine, but for the last couple of days any request to the firestore database returns the error: "com.google.firebase.firestore.FirebaseFirestoreException: PERMISSION_DENIED: Missing or insufficient permissions."
The rules are written correctly ("allow read, write: if request.auth.uid != null;"), the test passes in the playground. But the app doesn't work. I've already tried everything! Can you please tell me what else you can pay attention to? It is necessary to urgently finish the project, and this stops me. 
Reply all
Reply to author
Forward
0 new messages