Firestore REST API GET

I’m trying to connect my database from Firestore to appgyver.
Everything works fine when the security rules for the document I’m getting is…


For this rule I’d have the header " Authorization" and passing along "Bearer " + appVars.idToken like so…

But then when I want to add this security rule which means to allow read if the user uid = the document which has a field with the same user uid…


I get this error…

Is there some sort of header I need to be passing for this? I’ve been reading the firestore documents but not seen anything yet

Update:
This works: changing security rules to if uid matches document id allow read


I’ve created the database to match and passed Authorization "Bearer " + appVars.idToken with the URL placeholder set to uid :
projects/myProjectName/databases/(default)/documents/toDoListToday/FP1kgLB0rO2drUa4QamF/{uid}

2 Likes