Description
Do you want to request a feature or report a bug? bug
(If this is a usage question, please do not post it here—post it on gitter. If this is not a “feature” or a “bug”, or the phrase “How do I...?” applies, then it's probably a usage question.)
This issue relates to #529 which was closed.
What is the current behavior?
When a authenticated user logs out, it will also logout to same app open in other tab or windows. The behavior seems normal until a few seconds a rejection will be thrown.
Unhandled Rejection (FirebaseError): Missing or insufficient permissions.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox or similar.
What is the expected behavior?
The app should not thrown this error (I'm not sure of it).
Security Rules:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth.uid != null;
}
}
}
Current config used:
const config = {
userProfile: "users",
useFirestoreForProfile: true,
enableLogging: false
};
Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?
OS: Windows 10
Browser: Brave Browser Version 1.2.43
Dependencies: All packages are in the latest version