FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[AppCheck] firestore missing or insufficient permissions after a while · Issue #5842 · firebase/firebase-js-sdk · GitHub

[AppCheck] firestore missing or insufficient permissions after a while  #5842

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.
        });

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL