All Collections
FAQ
QuickStart Firebase Security Rules for Flamelink
QuickStart Firebase Security Rules for Flamelink

What are the default Firebase rules for Flamelink?

Support avatar
Written by Support
Updated over a week ago

For Cloud Firestore

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if request.auth.uid != null;
    }
  }
}

For Realtime Database

{
  "rules": {
    "flamelink": {
      ".read": "auth != null",
      ".write": "auth != null",
      "users": {
        ".indexOn": ["id", "email"]
      }
    }
  }
}

For Cloud Storage Bucket

rules_version = '2';
service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write: if request.auth != null;
    }
    match /flamelink/{allPaths=**} {
      allow read;
      allow write: if request.auth != null;
    }
  }
}
Did this answer your question?