Why not using Sanctum ?
https://laravel.com/docs/11.x/sanctum#mobile-application-authentication
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have been trying to figure out how I can handle user authentication in a mobile app and a separate web app using a single login system. Both of these projects will be backed by separate Laravel applications, each with their own databases.
From what I've seen, it seems the primary way to accomplish this would be to use Laravel Passport, possibly using another Laravel application dedicated to handling authentication. However the details and documentation seem confusing to me. I have a few questions about how I might be able to achieve this:
I'm also open to the possibility that my conclusions about using Passport for this may not be ideal either. Perhaps Sanctum installed on one of the two Laravel backend apps would be sufficient for the use-case, though I then would still question how I should go about tying auth via access tokens to user data in a different database.
Please or to participate in this conversation.