Skip to main content
All CollectionsTroubleshooting
Firebase rules for Flamelink
Firebase rules for Flamelink

Troubleshooting your Flamelink & Firebase rules

Support avatar
Written by Support
Updated over a year ago

Flamelink requires read & write functionality to be enabled for either the Realtime Database or Cloud Firestore (read more here) and your Storage Bucket.
​
Please ensure the following rules are set correctly:


For Cloud Firestore

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

Copy the above rules to your Cloud Firestore database rules

For Realtime Database

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

Copy the above rules to your Realtime database rules

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;
}
}
}

Copy the above rules to your Realtime database rules

That's it!
​
​You might also be interested in knowing where Flamelink stores Cloud Firestore data. Click here.

Did this answer your question?