Firestore Authentication

Hello! I’ve enabled firebase authentication and log-in is working. But I can’t seem to retrieve data. I’m using the Data Resource REST API to retrieve data. Here are my firestore security rules;

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