Completed the application setup with a complete authentication feature using sanctum and it is working fine on the local machine. But when I uploaded the application on the live server, the authentication returns the token too. But when the routes under sanctum middleware are accessed, it just returns an unauthenticated error.
I also changed the .env
files as:
SANCTUM_STATEFUL_DOMAINS=
SESSION_DOMAIN=
But still it is not working. Kindly help on this issue.