I am implementing Laravel Sanctum API in my service but I am having some issues with sessions. Let me explain:
I need to save some data for each user who authenticates via token. Now, if the token doesn't exist but the session does, the Sanctum middleware routes still pass. I have read that the session comes into play if the token is not present, but this is incorrect because the token should be valid for the duration of the session. Am I doing something wrong?