Hi,
I’ve recently enabled AppCheck enforcement on our web app with ReCaptcha v3 after seeing 0-1% invalid tokens in the console for over a week.
Everything was fine at first.
Yesterday, we were at an irl exhibition where we demonstrated our app to people on an iPad. The iPad was logged in with a new account that was created for that purpose. After a while, firestore requests from the iPad started failing, because of an invalid AppCheck token.
Interestingly, this only happened when we used "Add to Home Screen" in Safari. If we used the same account in a normal Safari window, everything worked.
I ended up disabling enforcement so we could keep the presentation going.
I have two questions now.
- Is there any way to tell why we got invalid AppCheck tokens? I.e. what behavior triggered ReCaptcha v3 here?
- Is there any way to prevent this, short of disabling enforcement?
Thanks!