Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

290
Visualizações
Using Firebase App Check Debug Provider with Angular

This is not a duplicate of How to initialise Firebase App Check in Angular because I can successfully initialise an app using reCAPTCHA Enterprise. This question is about initialising an app using the Debug Provider.

The Firebase documentation recommends using the Debug Provider when testing from localhost. Specifically

In your debug build, enable debug mode by setting self.FIREBASE_APPCHECK_DEBUG_TOKEN to true before you initialize App Check. For example:

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 self is referencing or where this code snippet should be placed.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

After a few experiments and guesses, setting FIREBASE_APPCHECK_DEBUG_TOKEN on the window object worked. I did this by adding the following to my app.component.ts constructor

(<any>window).FIREBASE_APPCHECK_DEBUG_TOKEN = true;

The precise code to extend the window object may change over time, but I took this syntax from How do you explicitly set a new property on window in TypeScript?.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda