to 1.2.3
Here are the instructions to follow to migrate to the latest version(1.2.3)
Firebase Security
Starting from version 1.2.3, security rule of your firestore database must be moved to a product ready rules. Follow the guide below how want you need to do:
Go to firebase console, select the project from your list of projects.
Click on Firestore database
On the firestore database page, select rules at the top section/part of the page.
Now on the rules tab, copy and paste the code below
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
//this allow anyone to read/write to your database
//you can set a grace period for the system to still alloow unauthenticated user
//to load data from your firebse.
//After the set date, users will app verison less 1.2.3 will not be able to use the app unless they update
allow read, write: if request.time < timestamp.date(2021, 7, 14);
//this make sure only authenticated user can load data from your database
allow read, write: if request.auth != null;
}
}
}
After pasting the rules above, click on Publish. Then you are good to go
Last updated
Was this helpful?