My application is a company-internal software. I want to enable all authenticated users to access all documents in the Firestore for tests. I ran into a mistake while doing this.
- The user logs in to the iOS app and has access to the documents.
- I delete the user from Firebase Auth (via Firebase console) As long as the user has the app open, he receives updates and can read and write.
Here is the code from the rules:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read : if request.auth != null
allow write: if request.auth != null
}
}
}
How can I prevent deleted users from continuing to have access?