Back

With Inertia+Vue, what's the best way to make authenticated API requests from within an Inertia component?

Should I use Sanctum and pass the token in HandleInertiaRequests, or should I use the web auth guard for my API endpoints so they are authenticated by the user's session?

1

776