#Laravel Sanctum Auth Issue multiple devices signed in

2 messages · Page 1 of 1 (latest)

muted shard
#

Greetings why in laravel 11 multiple users cannot be logged in even though sanctum generates multiple access tokens but only claims the subsequent access tokens are unauthetnicated?. I put an route inside my auth middleware and I get unauthenicated as well so it seems something is going wrong with my sanctum setup

brisk hill
#

You're using auth as middleware? That wouldn't work, you're gonna need to use auth:sanctum as per the docs.