In this short 8 minute video, I'll explain the similarities and differences between two first-party Laravel authentication packages: Passport and Sanctum.
You'll learn about how:
Both can create authentication tokens
Both can guard routes
Sanctum can be used with SPAs
Passport uses a full OAuth2 workflow
0:00 Intro
00:36 Similarities
03:39 Differences
07:58 Wrapping Up
Send me new video ideas and vote on what's coming next: https://suggest.gg/aschmelyun
Follow me on Twitter! / aschmelyun
Join my newsletter, where I send out new information twice each month in the PHP, JavaScript, and Docker worlds: https://aschmelyun.substack.com