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
Hello,
in my login API event handler, I am using the setUserSession() function to set the information of the logged in user.
On my local machine (my PC), the session setting works without any problems. But on my mobile devices, which access the dev website throught the local network, it doesnt work at all.
I have tried catching any errors as you can see, but after the session is set using the setUserSession() and after I try to fetch the session in the middleware, it comes out as not logged in.
Not sure if this problem is with my devices or if it has to do something with Nuxt being hosted on a different machine and being accessed through local network, but thanks for any kind of help.
Cheers, Michal.
The text was updated successfully, but these errors were encountered:
I have tried getting the session back right after setting the session in the server api file and it returns the correct set object. But back on the client side, the fetch returns nothing.
But what I have found out, is that the sessions output differ on mobile and on PC. (Top is mobile device, under it is log from PC device request)
@atinux is there a way to disable secure? I just plugged this framework into a local network only app and I have the same issue when I deploy it to my home lab .. just found this question.
Hello,
in my login API event handler, I am using the
setUserSession()
function to set the information of the logged in user.On my local machine (my PC), the session setting works without any problems. But on my mobile devices, which access the dev website throught the local network, it doesnt work at all.
I have tried catching any errors as you can see, but after the session is set using the
setUserSession()
and after I try to fetch the session in the middleware, it comes out as not logged in.Not sure if this problem is with my devices or if it has to do something with Nuxt being hosted on a different machine and being accessed through local network, but thanks for any kind of help.
Cheers, Michal.
The text was updated successfully, but these errors were encountered: