Search code examples
angulartypescriptfirebaseangularfirefirebase-app-check

Disable firebase app check for local emulator in angularfire


I have this code in my imports array in app.module.ts to enable app check.
It works fine but I get a new debug token in the console very often.
I have to add this token to the firebase console every time. It's really annoying, is there a way to disable app check for the local emulator?

provideAppCheck(() => {
      const appCheck = initializeAppCheck(getApp(), {
        provider: new ReCaptchaV3Provider(environment.appCheck),
        isTokenAutoRefreshEnabled: true,
      });

      return appCheck;
    }),

I get this error in the console too:

This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend. 

Solution

  • I just disabled appcheck because the docs are not there