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

muazanqureshi's avatar

Laravel Sanctum Api Auth

Hello, when I logged in to the user from API using Sanctum on localhost its worked fine but when I upload it to the live server and try to log in its login but after a few seconds (2-5) it logged out the user automatically.

0 likes
1 reply
christian-qode's avatar

@muazanqureshi Do you see any errors in your logging?

Is the rest of your application working correctly (if it's possible to test without access of course ;-) )?

Is your app key generated on live?

Maybe it has something to do with SSL?

Please or to participate in this conversation.