#JWT token vs Sanctum
10 messages · Page 1 of 1 (latest)
Laravel Sanctum if you wish to use Cookie session authentification, if not then jwt
On client and server?
Or on server only
Don't forget that I do not use inertia
What do you mean? If you use Sanctum and session based authentification, you can use axios withCredentials set to true, there is a pretty good explanation in docs
Oh ok then
I think I will rely on sanctum cuz the JWT code is not really effective
I did JWT before but the package is not good
I thought the sanctum is compatible only with Laravel blade or inertia
Inertia doesnt use Sanctum at all, Blade is a templating language