I have the following rules set up for the users collection
match /users/{userId} {
allow read, write, update: if request.auth != null && request.auth.uid == userId
}
And I would like to check if a user exists but the above rules won't let me. Should I allow read rights to all logged in users?
FirebaseFirestore.instance
.collection('users')
.where('email', isEqualTo: snap[index]['email'])
.get()