[Firebase/Firestore][I-FST000001] AppCheck failed - debug token #6442
-
I am trying to obtain my AppCheck debug token from the Xcode logs and from the I am seeing the traffic appear in the firebase console App Check section under: "Unverified: Invalid requests", which proves that the AppCheck package is installed correctly. I have done the following:
For iOS however, I do have a different team ID for debug signing (yes, this is a thing from Apple) which may be a reason why it is not working on iOS. Unfortunately I can only register one team ID on firebase console. But I am unsure as to why it is not working for Android..? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hmm - this seems like it should be working based on your description of performed items 1-5, however I will say this part:
...does not I think mean that you have actually installed it correctly. I think you will see that sort of message any time you have enabled appcheck in the firebase web console in non-enforcing mode. I think that's the generic "well, we're looking for AppCheck but don't see the headers" message, which could mean any number of things are going wrong in the client (like: you can't get device attestation somehow, for some reason) This is a bit vague but all I can think of is to reach into the node_modules app check code and add logging around the API usage as we go down to the firebase-ios-sdk / firebase-android-sdk areas so you can be 100% sure the tokens are requested, and what the APIs return, then add some javascript where you explicitly call the AppCheck apis and attempt to log out the current token / token status |
Beta Was this translation helpful? Give feedback.
-
I revisited this issue recently and found that it was fixed due to another issue I had resolved earlier where my firebase auth tokens weren't being refreshed properly. This question can be closed :) |
Beta Was this translation helpful? Give feedback.
I revisited this issue recently and found that it was fixed due to another issue I had resolved earlier where my firebase auth tokens weren't being refreshed properly.
API permissions are a pain and there's no real guide to which permissions should be allowed for particular firebase features.
This question can be closed :)