Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mhmmdkyr's avatar

"Unauthenticated" Error on server only

I have a project where I use Laravel version 8.12. I'm using sanctum for session authentication. When using my API service, I can log in to my local server without any errors and verify Bearer with the token I produce. However, when I upload the same codes to a server with the same features, I get { "message": "Unauthenticated"} error. I need help on this.

0 likes
0 replies

Please or to participate in this conversation.