lucia-auth / lucia

Authentication, simple and clean
https://lucia-auth.com
MIT License
8.96k stars 460 forks source link

[Bug]: nuxt middleware doesn't seem to work as expected #1391

Closed Mateleo closed 7 months ago

Mateleo commented 7 months ago

Package

lucia

Describe the bug

I've tried Lucia's new "bleeding edge" v3, and with the guide offered on the documentation, I find myself with a really special bug. Protected pages are accessible for a few seconds before the protection takes over. I don't know for sure what is causing it... I will try to find it tomorrow

Mateleo commented 7 months ago

Ok I don't know why but even the Nuxt example with Github from your repo doesn't work for me.

pilcrowOnPaper commented 7 months ago

You can see the changes of #1403 but the fix is to use useFetch() instead of $fetch()