Firebase Security
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
//this allow anyone to read/write to your database
//this make sure only authenticated user can load data from your database
allow read, write: if request.auth != null;
}
}
}Last updated