You want to retrieve the authenticated user without using the auth:sanctum middleware, but the users are authenticated with Sanctum ?
I don't think that it's possible.
Which documentation have you read ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, I use Sanctum v4.0.3 and I can't get authenticated user data without auth:sanctum middleware, I already have Accept:application/json,Origin:'' in headers. I think I did everything in the documentation or maybe I missed something?
Please or to participate in this conversation.