nuxt-community / firebase-module

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

Can't access firebase. auth. PhoneAuthProvider #506

Closed roselily8 closed 3 years ago

roselily8 commented 3 years ago

Hi Lupas,

I've tried to access firebase. auth. PhoneAuthProvider through both $fire.auth and $fireModule.auth. It's throwing an error. Not sure if this is a bug or a usage issue.

Thanks,

lupas commented 3 years ago

Hey roselily8

It should work like this:

const provider = this.$fireModule.auth.PhoneAuthProvider()

Let me know if it wouldn't.

roselily8 commented 3 years ago

@lupas That's what I've tried. It returns undefined.

roselily8 commented 3 years ago

I need to access verifyPhoneNumber on provider.

lupas commented 3 years ago

Hey @roselily8

Sorry, I forgot to add the new, does it work like so?

const provider = new this.$fireModule.auth.PhoneAuthProvider()