Make sure you update composer.json
laravel/passport: "^7.0",
The run composer update
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi everyone,
I've been struggling to get around this problem that surfaced right after upgrading the framework to version 5.7.
I have this app in production, where part of the UI is driven by API requests. This has been working for more than a year, but since I've updated the framework the same requests now return {"error":"Unauthenticated."}.
I've checked the headers, and everything appears to be normal: https://cl.ly/69d469a314c5
Have anyone bumped into this problem too, how did you got around it?
Please or to participate in this conversation.