Use @nuxtjs/strapi to add Authentication to your project

Our community is looking for talented writers who are passionate about our ecosystem (jamstack, open-source, javascript) and willing to share their knowledge/experiences through our Write for the community program.


This is a companion discussion topic for the original entry at https://strapi.io/blog/how-to-use-the-nuxt-strapi-module-to-add-authentication-to-a-nuxt-application

Does strapi@^0.3.4 support only Local email Login https://strapi-v0.nuxtjs.org/ ?
Can you provide How to login with another provider like Google for strapi V.4

Login with email and password successfully. But got an error

Cannot read property ‘data’ of undefined

missing stack frames at pages/articles.js.

BTW, the github link to backend is with Strapi v3 but that of the frontend is for Strapi v4.

I don’t think the nuxt/strapi installation examples are up to date. They don’t match the current website’s documentation. I don’t believe ‘entities’ is required any more, either.

Found out that Nuxt ignoring /api part in config file nuxt.config.js. Fixed by adding a slash in URL strings after ‘/api’ in env: STRAPI_URL and strapi: url values. Thanks for nice tutorial!