Polak
Has anyone played around with "nuxt-auth-sanctum"? I have some issues.
Link to module: https://manchenkoff.gitbook.io/nuxt-auth-sanctum
So where is my issue? I've managed to setup everything on Laravel 11 as for sanctum, but my issue is that my Nuxt app sends the GET /api/user request without the Application/json header.
My question is, does anyone know how I can solve this? OR how else would you setup authentication with laravel 11 nowadays?
I get this error from nuxt because the request doesnt have the right header:
If I call the same endpoint from Hoppscotch (postman) with the right header, then it works.
I am looking for both tips, other recommendations to auth etc. I am fairly new to Nuxt and Laravel.
20 replies
(Solved) Nuxt with SASS - Legacy Deprecation
Hi.
I am runnning into an issue while trying to use sass with Nuxt 3 project. I'm more of a do it yourself type of guy and therefore would like to use SASS. The sass package I use though, is throwing deprecation errors:
Does anyone know the solution to this? I have thought about saying f*ck it and use prepros to compile to css and just load that file, but then I loose the possibility to have scoped styling. Maybe I dont need a sass package at all? is it supported by default?
6 replies
i18n fallback issues
Heya people. I've recently moved away from NextJS over to Vue and I'm trying to setup the most important things and one of them is i18n. It works so smoothly compared to next and I love it so far. One thing I am not happy with though is the fallbackLocale feature on the i18n package. The documentation says I should do it in this way but the editor says it is wrong. Any ideas?
Documentation says I should it like this:
But I get the error:
^ On line with "fallbackLocale"
Any suggestions? 😄
33 replies