I've created a custom Firebase App Check provider for my firebase apps. My question is, how do I properly send a successful request using Firestore REST API after getting the token from my custom app check. Thanks!
Asked
Active
Viewed 429 times
1 Answers
0
You need to set the appCheck token in the headers of your request like so
// Include the App Check token with requests to your server.
const apiResponse = await fetch('https://yourFirebaseRestApiURL/Endpoint', {
headers: {
'X-Firebase-AppCheck': appCheckTokenResponse.token,
}
});
This is not documented in the Firestore Rest API but in the AppCheck docs https://firebase.google.com/docs/app-check/web/custom-resource

Nico
- 21
- 2