Get Error : Firestore: The caller does not have permission to execute the specified operation. But I have already signed in
This is an issue because of the rules that your DB currently has. Please check both datebases, Realtime and Firestore.
As in general, having full security rules or any other rule that is not complitely understood by RD or CF logic will get you that error everytime.
> // Full security
>
> { "rules": {
> ".read": false,
> ".write": false } }
in Firestore you can configurate that as the following:
> service cloud.firestore { match /databases/{database}/documents {
> match /{document=**} {
> allow read: if auth != null;
> allow write: if auth != null;
> } } }
For more examples you can see: https://gist.github.com/codediodeio/6dbce1305b9556c2136492522e2100f6 https://firebase.google.com/docs/database/security
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
}
}
change to this
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth != null;
}
}
}