← All writing
Laravel13 Jun 20244 min read
Laravel Sanctum for SPAs and mobile apps
Mark Topper
Founder · Ulties

Sanctum is compelling precisely because it does not try to solve every auth problem. It solves a common one cleanly.
For first-party SPAs and mobile applications, the right auth system is often the least dramatic one. Sanctum gives Laravel teams a straightforward model for session authentication and personal access tokens without pushing them into full OAuth complexity.
That simplicity is the point. Fewer flows, fewer moving parts, and fewer concepts usually mean fewer security mistakes and less operational overhead.
Use Passport when you need an authorization server. Use Sanctum when you need sane first-party auth and token issuance. Most apps fit the second category.
Read next
