Error :
'Error with profile listener: Missing or insufficient permissions. Error: Missing or insufficient permissions.'
My app is a project manager built using Reactjs, Redux, Firebase. Could you tell me why it gives this error when the user logs out and how to solve it?
My rules:
service cloud.firestore {
match /databases/{database}/documents {
// Match any {project} document in the 'projects' collection
match /projects/{project} {
// Allow signed in users to read write projects
allow read, write: if request.auth.uid != null;
}
// Match any {user} document in the 'users' collection
match /users/{user} {
// Allow users to signup and create an account
allow create;
// Allow signed in users to read project details - who create project and when)
allow read: if request.auth.uid != null;
// Allow signed in user to update his info only if signed in id == user document id
allow update, delete: if request.auth.uid == user;
}
}
}