3.1 start in production and add the code snippet below to prevent unwanted access
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth != null;
}
}
}
4.1 Enable the providers below