π Set Up Firestore Security Rules
By default, your database is locked. You need to add rules to protect your user data.
β In the Firestore Database section, click the "Rules" tab.
β Delete the existing rules
β Paste in the following rules:
This code lets uses add, update, delete information in their own document (in other words their profile fields e.g. name, email). A user can also add, update, delete collections in their own document. (in other words, they can create folders inside their profile e.g. βfilesβ folder )
β Click the "Publish" button to save and apply the new rules.
Your database is now secured, and users can only access their own files and profile information.