nuxt-community / auth-module

Zero-boilerplate authentication support for Nuxt 2
https://auth.nuxtjs.org
MIT License
1.93k stars 924 forks source link

Is there any npm library for Facebook login only (Nuxt 3/Vue 3) #1871

Open vanminhquangtri opened 6 months ago

vanminhquangtri commented 6 months ago

Hi,

I am using Nuxt 3 and my app will use Facebook login, but we don't want to use nuxt-auth because nuxt-auth is for multi provider which can make the built files larger.

So do you know any npm library which exclusively handle Login Facebook for Nuxt 3 or Vue 3 framework? Something like: nuxt-vue3-google-signin

I found vue-facebook-login but it is not maitaned for more than 3 years so we worry about security if use it. https://www.npmjs.com/package/vue-facebook-login-component

Thank you. Van Minh

kissu commented 6 months ago

Are the files actually bigger (did you give it a try)? Isn't the whole thing only using a given provider at a time?

Regarding security, I think it might just be fine. A frontend will mostly only check the token sent from facebook. I think that the security part is mostly on Facebook's side.