-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AppCheck] firestore missing or insufficient permissions after a while #5842
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Thanks for reporting @orbachar. Would you be able to enable debug messages and provide the debug logs? you can enable Moreover, if you have an easy repro code that you can share (e.g. via a GitHub repo) that'd speed up our investigation. Thanks |
Thanks @orbachar . I want to make sure this is indeed an AppCheck issue (rather than an Authentication issue). Can you please confirm that if you turn off AppCheck enforcement for Firestore in the Firebase Console, the issue does not occur anymore? |
yes, I did that again today just to make sure - with AppCheck unenforced for Firestore, it doesn't happen. if I turn on appCheck again, the errors return after some idle time |
Thanks for confirming @orbachar. |
@orbachar I was able to reproduce this issue. I'll continue to look into fixing this. |
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
The text was updated successfully, but these errors were encountered: