You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using auth next with laravel sanctum provider to communicate with laravel api. On my local I have nuxt app on port 3000 and laravel app on port 8000, so the urls are http://localhost:8000 and http://localhost:3000 💬
Also I have prod server set like this
Nuxt - http://maindomain.com
Laravel Api - http://api.maindomain.com
So the problem is that on my local auth happens successfully, but when I try to login on prod server - nothing happens. In network I see that backend returned successful response, but I'm still on login page. I debug it a little bit, I log to console the state of this.$auth.user after login but before redirect, and on local it is returning user object as expected, but on prod - false.
So what can be the issue here? Is it related to the laravel api subdomain?
The text was updated successfully, but these errors were encountered:
I am using auth next with laravel sanctum provider to communicate with laravel api. On my local I have nuxt app on port 3000 and laravel app on port 8000, so the urls are
http://localhost:8000
andhttp://localhost:3000
💬Also I have prod server set like this
Nuxt -
http://maindomain.com
Laravel Api -
http://api.maindomain.com
Here is my nuxt.config.js file
Here is my login logic on login page
Admin page is under auth middleware.
So the problem is that on my local auth happens successfully, but when I try to login on prod server - nothing happens. In network I see that backend returned successful response, but I'm still on login page. I debug it a little bit, I log to console the state of
this.$auth.user
after login but before redirect, and on local it is returning user object as expected, but on prod - false.So what can be the issue here? Is it related to the laravel api subdomain?
The text was updated successfully, but these errors were encountered: