Questions tagged [firebase-app-check]

App Check works alongside other Firebase services to help protect your backend resources from abuse by allowing only your apps to access them.

App Check works alongside other Firebase services to help protect your backend resources from abuse, such as billing fraud or phishing. With App Check, devices running your app will use an app or device attestation provider that attests to one or both of the following:

  • Requests originate from your authentic app
  • Requests originate from an authentic, untampered device

This attestation is attached to every request your app makes to your Firebase backend resources.

App Check has built-in support for using the following three services as attestation providers:

  • DeviceCheck on iOS
  • SafetyNet on Android
  • reCAPTCHA v3 on web apps

If these are insufficient for your needs, you can also implement your own service that uses either a third-party attestation provider or your own attestation techniques.

App Check currently works with the following Firebase products:

  • Realtime Database
  • Cloud Firestore
  • Cloud Storage
  • Cloud Functions (callable functions)

Related tags

315 questions
4
votes
1 answer

ReferenceError: document is not defined - Firebase AppCheck with SvelteKit

I'm trying to add AppCheck in my SvelteKit web app and it gives this error: ReferenceError: document is not defined at makeDiv (C:\Users...\ecomm\node_modules@firebase\app-check\dist\index.cjs.js:1149:24) at initializeV3…
4
votes
0 answers

How exactly you supposed to use Firebase App Check?

Its been year since App Check was introduce, back then we tried to implement in one of our project the enforced services like Firestore and Storage but both service has stopped working due to denied permission. PERMISSION_DENIED: Missing or…
4
votes
0 answers

How to handle Firebase AppCheck errors?

After I implemented at AppCheck, I started receiving many related errors via the error logger. Then, I wanted to handle it and didn't find a way to do that. I tried to use the try/catch function, but it didn't work. try { const appCheck =…
MAZ
  • 643
  • 5
  • 18
4
votes
0 answers

Firebase App Check for Web App not working, did follow instructions, where am I going wrong?

So I followed the instrucutions on adding Firebase App Check as listed here. I created a reCAPTCHA V3 project and copied the "Use this site key in the HTML code your site serves to users." in my firebase Init and then copied the "Use this secret key…
4
votes
0 answers

Error returned from API. code: 403 - Firebase App Check Android

Our app has Firebase app check, but some users have this error, and the app crashes Thanks Caused by com.google.firebase.FirebaseException: Error returned from API. code: 403 body: App attestation failed. at…
jggomez
  • 124
  • 6
4
votes
1 answer

Firebase AppCheck iOS gives an error when generating appcheck token error code 0

When I run my app from xcode on my iPhone 12 Device, I get an error when trying to generate the Firebase AppCheck Token from below method. The error code is 0 and there is no description in the error object. AppCheck.appCheck().token(forcingRefresh:…
hblk
  • 81
  • 6
4
votes
4 answers

How to use Firebase App Check in React. 403 error

I want to use Firebase App Check in Gatsby Project.I have completed the App registration in the Firebase console. In my project: import { initializeApp } from "firebase/app"; import { initializeAppCheck, ReCaptchaV3Provider, getToken } from…
85Ryan
  • 115
  • 2
  • 8
4
votes
1 answer

How to restrict Firebase Cloud Function to accept requests only from Firebase Hosting website

I have a Node.js API (built with Express.js) hosted on Firebase Cloud Functions and an accompanying web application hosted on Firebase Hosting which is supposed to interact with the aforementioned API. I would like to restrict calls to the API so…
4
votes
1 answer

Firebase Web + Functions + App Check auth error when using emulator on localhost

I run a local emulator for firebase functions. When I'm executing an onCall function from the frontend side I see this message in my functions'…
4
votes
2 answers

Firebase Functions AppCheck keeps failing my device

I have been trying to integrate AppCheck with my Android app, but I can't seem to make a valid request. As for test purposes, I have been using the following code: Android Code class Application : MultiDexApplication() { override fun onCreate()…
Ravers
  • 988
  • 2
  • 14
  • 45
4
votes
2 answers

Firebase AppCheck - web app not working in debug mode

I have setup Firebase AppCheck for my Web App and everything seemed to work fine. Now I would like to enable the debug mode when developing my app. I followed the instructions in the official documentation but I keep getting random errors from the…
l1b3rty
  • 3,333
  • 14
  • 32
4
votes
3 answers

How to initialise Firebase App Check in Angular

I was wondering how can i initialise firebase app check using angular. I am using angular fire but I am not sure how to initalise firebase app check before using any of the services the docs have this Add the following initialization code to your…
ebg11
  • 906
  • 1
  • 12
  • 33
3
votes
1 answer

How to implement Firebase AppCheck for Firebase Auth?

App Check is now showing "Authentication (Beta)" in the AppCheck panel of the firebase console. I see all my traffic logged there as "Unverified". I can't find any documentation on how to implement App Check for auth, so how can I add AppCheck for…
3
votes
0 answers

Integrate Google Play integrity in react-native

Is there any proper documentation to integrate google play integrity check in react-native cli I have tried react-native-firebase/appcheck but not get proper solution
3
votes
0 answers

App Check Debug Token Flutter Not Working

I generated a debug token from AppCheck, but when I use this token it does not work: Flutter Main: const debugToken = 'XXXXXXXXXXXXXXXXXXXXXXXXXXX'; bool kReleaseMode = bool.fromEnvironment("dart.vm.product"); print("kReleaseMode:…
Petro
  • 3,484
  • 3
  • 32
  • 59
1 2
3
20 21