I have a Flutter app that is generating the following error that is displayed above the app bar
[cloud_firestore/permission-denied] The caller does not have
The error occurs when:
1). The current app user logs out of my app.
2). The login screen is presented
3). The user logs in with a different user email/password
The error occurs AFTER the user has logged in.
No error logs appear in the IDE
I have the following Firestore rule set up
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents/{collection} {
match /{document=**} {
allow read, write: if request.auth != null
}
}
}
Any suggestions?