I am trying to use a custom auth token with firestore. I am using nodejs to generate the token with the following code.
const admin = require(\'firebase-admi
You can't directly access REST APIs with a custom token. You need to sign in using the custom token, and obtain an ID token. There are 2 ways to do this:
Then you can access the Firestore REST API with the resulting ID token:
https://firebase.google.com/docs/firestore/use-rest-api#working_with_firebase_id_tokens