I am try to implement firebase appCheck as mention in the official documentation https://firebase.google.com/docs/app-check/custom-resource-backend in the node back-end side.
version: "firebase-admin": "^9.3.0", node: v16.13.0
But i got a type error firebaseAdmin.appCheck is not a function
with the example code given in the official documentation.
I tried with initializeApp
with credentials, but no luck
CodePudding user response:
Firebase Admin "9.3.0"
is very old version (released ~2 years ago, before App Check was GA). Try updating Firebase Admin to latest version:
npm i firebase-admin@latest