Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ndamulelonemakh/64f8e84c18daa5d7fc3de7889e65a889 to your computer and use it in GitHub Desktop.

Select an option

Save ndamulelonemakh/64f8e84c18daa5d7fc3de7889e65a889 to your computer and use it in GitHub Desktop.
Firebase Security Rules Cheat Sheet
service cloud.firestore{
match /databases/{database}/documents{
match /{document=**}{
allow read, write: if request.auth.uid != null;
}
}
}
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