Closed eljass closed 2 years ago
Hey @eljass
Thanks a lot, that looks great and seems to work! Appreciate it 👍
I merged it to master already, but just saw that for some reason the Firestore implementation breaks in the demo when AppCheck is enabled. Without Firestore, AppCheck works, and without AppCheck, Firestore works.
Haven't used AppCheck much, any clue what that could be? See the demo in this branch: https://github.com/nuxt-community/firebase-module/tree/newStructure/packages/demo
@lupas Happy to help!
I'm not sure why this happened, I did not actually test this with other features. Now I used the demo branch to test this through and found out that the App check was too high on the template-utils.js
, I moved it to the last item on the list and now everything seems to work as expected.
Also, I did add lazy loading functionality on the app check. I made a PR from these changes (https://github.com/nuxt-community/firebase-module/pull/608)
Support for App Check
Adds support for Firebase App Check.
Note: This will currently work only on the client side.
Initialize:
Enable App Check inside
nuxt.config.js
:Options:
Usage
When initialized there is possibility to activate App Check by calling
Relates to
https://github.com/nuxt-community/firebase-module/issues/534