I got the same problem using Passport instead of Sanctum.
In my case it seems to be a problem when the default middleware is active.
/*
|--------------------------------------------------------------------------
| Spark Middleware
|--------------------------------------------------------------------------
|
| These are the middleware that requests to the Spark billing portal must
| pass through before being accepted. Typically, the default list that
| is defined below should be suitable for most Laravel applications.
|
*/
'middleware' => [], //TODO: Check, which middleware has to be passed
Using this empty array, I don't get redirected, but I have to figure out, how this impacts the security of my app.