Closed
Description
- Browser version: Chrome
- Firebase SDK version: 9.6.1
- Firebase Product: app check
Hey,
I am using app check with reCAPTCHA Enterprise and Cloud Firestore enforced on my webapp.
I also set the token TTL to 30 minutes.
I noticed that after a while when the browser idle, I am getting "FirebaseError: Missing or insufficient permissions." and can't query the DB anymore.
refresh fixes it..
so I believe it is because the token isn't valid anymore, although I enabled auto refresh.
this is the code I am using
const appCheck = initializeAppCheck(app, {
provider: new ReCaptchaEnterpriseProvider(appCheckRecaptchaKey),
isTokenAutoRefreshEnabled: true // Set to true to allow auto-refresh.
});