Description
Operating System
Various
Browser Version
Various
Firebase SDK Version
10.7.0
Firebase SDK Product:
App Check
Describe your project's tooling
React app on desktop web and mobile web
Describe the problem
App Check
I'm observing a high percentage of invalid requests for App Check on the Firestore Database and the Realtime Database:
Additionally, the graph for Storage is showing 100% verified, but it only has a few hundred requests.
reCAPTCHA Enterprise
Below are screenshots from the GCP reCAPTCHA Enterprise dashboard, also for the past 30 days:
Issue and thoughts
Given that requests are almost all marked as low risk on the GCP dashboard, I'm guessing there might be some bug on the App Check client that's not sending valid requests to reCAPTCHA. I could be wrong, but given the high false positive rates (as reported by users), I simply cannot enforce it across the databases. I'm grateful to the Firebase team for supporting this and hope I can enforce it one day. Let me know if there's any more information I can provide.
Steps and code to reproduce issue
This is hard to reproduce. I opened an issue a while back #7116 that was related. From my own usage in the past, app check starts to fail after having the app opened for a long period of time, potentially related to #6708. However, I've also had a (returning) user seeing it on app open, meaning assessment passed before but failed later on the same device.
In the app, I would initializeApp()
then initializeAppCheck
immediately. This happens when users open the app.
const app = initializeApp(options, name)
initializeAppCheck(app, {
provider: new ReCaptchaEnterpriseProvider(key),
isTokenAutoRefreshEnabled: true
})