nuxt-community / firebase-module

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

fix: add lazy load to app check and fix collection is not a function #608

Closed eljass closed 2 years ago

eljass commented 2 years ago

Description

Usage

Note: Use only on clientside hooks For example:

mounted() {
  this.loadAppCheck()
},
methods: {
  async loadAppCheck() {
    await this.$fire.appCheckReady()
    await this.$fire.appCheck.activate('RECAPTCHA V3 KEY')
  }

or


if (process.client) {
    await this.$fire.appCheckReady()
    await this.$fire.appCheck.activate('RECAPTCHA V3 KEY')
}