Skip to content

App Check 'Missing appcheck token' error when performing RTDB operations #1788

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

Open
lahirumaramba opened this issue Jun 28, 2022 · 5 comments
Assignees

Comments

@lahirumaramba
Copy link
Member

lahirumaramba commented Jun 28, 2022

Can reproduce on [email protected] and up.

└─┬ [email protected]
  └─┬ @firebase/[email protected]
    └── @firebase/[email protected]

Internal issue: b/236414557

@lahirumaramba
Copy link
Member Author

Fix: firebase/firebase-js-sdk#6399

@Faizan770gp
Copy link

@lahirumaramba I have followed documented steps to setup recaptcha and use AppCheck with flutter. I've enabled enforcements for cloud Firestore but after enabling enforcements I'm getting the following error.

[cloud_firestore/permission-denied] Missing or insufficient permissions.

@lahirumaramba
Copy link
Member Author

Hi @Faizan770gp are you using the Firebase Admin SDK or Firebase Client SDKs? If you are using Firebase client SDKs and getting the above error, it might be due to how your security rules are set. You can check your existing rules at Go to Database -> Rules : on the Firebase console. In the future please use this repo for Firebase Admin SDK SDK related questions. Thanks!

@Faizan770gp
Copy link

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if true;
    }
  }
}

My database rules are set to true in all conditions. So the rules are not the problem here.

@weixifan
Copy link

Hi @Faizan770gp -- thank you for bringing your issue to our attention. The issue you experienced with Flutter and Firestore may be related to a similar issue we recently fixed. Could you please try updating to the latest Flutter App Check version and see if that fixes your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants