Hi,
I was looking at sending customer information to firebase as described here.
https://docs.revenuecat.com/docs/firebase-integration
There are example security rules here
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /${param:REVENUECAT_CUSTOMERS_COLLECTION}/{uid} {
allow read: if request.auth.uid == uid;
}
match /${param:REVENUECAT_EVENTS_COLLECTION}/{id} {
allow read: if request.auth.uid == resource.app_user_id
}
}
}
Are these security rules meant to be copy/pasted directly into firebase? They flag up some syntax errors when I try to and I’m not sure how they are supposed to be changed. I think the “${param:REVENUECAT_EVENTS_COLLECTION}” is the problematic part.