Using Firebase App Check Debug Provider with Angular #5757
-
Hi, I can successfully initialize a web-app with a reCAPTCHA Enterprise provider. However, it's unclear to me how to use the Debug Provider from within an Angular application. The Firebase documentation recommends using the Debug Provider when testing from localhost. Specifically
self.FIREBASE_APPCHECK_DEBUG_TOKEN = true;
initializeAppCheck(app, { /* App Check options */ }); How can this be achieved in an Angular application? It's not clear what |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
After a few experiments and guesses, the following worked for me. Add the following to your (<any>window).FIREBASE_APPCHECK_DEBUG_TOKEN = true; |
Beta Was this translation helpful? Give feedback.
After a few experiments and guesses, the following worked for me.
Add the following to your
app.component.ts
constructor