nuxt-community / firebase-module

🔥 Easily integrate Firebase into your Nuxt project. 🔥
https://firebase.nuxtjs.org
MIT License
642 stars 97 forks source link

App check with reCAPTCHA Enterprise #635

Closed IskandarAlex2 closed 2 years ago

IskandarAlex2 commented 2 years ago

Hello developers!

So I am having a problem with accessing firestore with the SDK in mounted() with the error of permission insufficient, at first I thought it was something wrong with the SDK since my firestore security rules are set to all paths to allow both reading and writing but when I look into my App Check request metric for firestore it's 100% of Unverified: outdated client requests, I tried adding this.$nuxt.$fire.appCheck.activate('<reCAPTCHA Enterprise key>') (I have to this.$nuxt because $fire isn't inside this for some reason) but now it just filling up the App Check metric with Unverified: Invalid requests, there's no such documentation on how to use the App Check as to what I can find so really I am stuck now, I know I could just Unenforced the App Check but that's quite risky since the purpose of app check is to well protect the app, so basically, I want to use reCAPTCHA Enterprise Key for my App Check for firebase would allow my app to access the APIs but I can't find any documentations that will show how to properly use it,

Thanks.

IskandarAlex2 commented 2 years ago

I just make my own plugin firebase and fix some stuff in the reCAPTCHA key data, quite challenging but I managed to and it's more to my liking since I am more to modular scripting