Laravel Passport vs Sanctum: What's the difference?

Published: 23 September 2022
on channel: Andrew Schmelyun
15,857
467

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


Watch video Laravel Passport vs Sanctum: What's the difference? online without registration, duration hours minute second in high quality. This video was added by user Andrew Schmelyun 23 September 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 15,857 once and liked it 467 people.