nuxt-community / auth-module

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

Auth not able to work on index.vue on root. #1717

Open shintaii opened 2 years ago

shintaii commented 2 years ago

Hi,

I have an issue where i do not get the auth to work in the index.vue page in the root of the pages folder of nuxt.

So on ALL routes everything works fine, but on the pages/index.vue it does not. So basically that is the '/' route/url of the app. I have tried to put auth in the layout, on the page, in a component on that page, all without success.

Am i doing something wrong?

update: when setting the auth enabled on all routers in nuxt.config.js, it does work on the index.vue page in the root.