Auth module doesn't fetch user after logged in (laravelSanctum) #1712
Unanswered
robingiraud
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I have a problem using the AuthModule with laravelSanctum, only when the backend is built in production (hosted in an Heroku server).
My problem is : I can login well with this.$auth.loginWith('laravelSanctum', ...) but then, the endpoint to fetch user's data isn't called.
When I set up my nuxt.config.js to fetch my local api, everything is ok. But when I setup to fetch the API in production mode, I'm having this problem.
I think I've tried everything for the last 2 days, so I hope someone could help me :)
Here is my nuxt.config.js :
I also test the hosted API with Insomnia, and every endpoint is ok
Thanks for your help :)
Beta Was this translation helpful? Give feedback.
All reactions