Closed michaeldojcar closed 3 months ago
Edit: It is working on production, so maybe it's related to my local environment.
Hey @michaeldojcar, I tried to reproduce it in Safari, but no luck 😞 I would suggest checking Safari security-related settings or so because I believe it has nothing to do with the module, especially since you mentioned that in Chrome and Prod it's alright.
Closing due to inactivity
Hi, thanks for nice module. I am struggling with the new token mode.
Describe the bug
When I try to log in to app with token mode in current Safari, it won't save Sanctum token cookie and /api/user request throws error 401 Unauthenticated. In Chrome the token cookie is saved and user can login and call /api/user route without any problems.
To Reproduce
Steps to reproduce the behavior:
Try to login in Safari. Mode: token is set in nuxt.config.ts.
Expected behavior
In chrome token is saved correctly and everything works right.
Screenshots
Chrome cookie is saved correctly:
In Safari nothing appear in cookies:
Module information
sanctum
from yournuxt.config.ts
:Nuxt environment: