Skip to content
Advertisement

All my requests to Firestore are classified as unverified because of AppCheck?

I enforced Firebase AppCheck for Firestore.

Now, when I try to access data, I get an error:

    firebase
      .firestore()
      .doc(firestoreRoot.configs.priceIds._pathUrl)
      .get()
      .then((v) => console.log(v.data()));

appcheck error

In Firebase, it says all my requests are unverified:

enter image description here

This only happens for firestore.

Is there something else I must do?

I enabled AppCheck in my app using:

  const appCheck = firebase.appCheck();
  appCheck.activate("MY_SITE_KEY", true);

I tried disabling AppCheck in the firebase console, and now all my requests are accepted.

Answer

The firebase documentation says:

Important: Cloud Firestore support is currently available only for Android and iOS clients. If your project has a web app, don’t enable Cloud Firestore enforcement until web client support is available.

Therefore, appcheck cannot be used with firestore for web applications.

Advertisement