Last active
January 17, 2020 08:40
-
-
Save ndamulelonemakh/64f8e84c18daa5d7fc3de7889e65a889 to your computer and use it in GitHub Desktop.
Firebase Security Rules Cheat Sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| service cloud.firestore{ | |
| match /databases/{database}/documents{ | |
| match /{document=**}{ | |
| allow read, write: if request.auth.uid != null; | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| service cloud.firestore{ | |
| match /databases/{database}/documents{ | |
| // Access will be denied to all documents within the selected database | |
| match /{document=**}{ | |
| allow read, write: if false | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment