Laravel Sanctum vs Passport & when to use Laravel Sanctum - Laravel SPA Authentication

Опубликовано: 26 Сентябрь 2020
на канале: Program With Gio
9k
197

With Laravel Sanctum being the "newer" package for Laravel, it can get confusing when you should use Sanctum for authentication over something like JWT or Laravel Passport when authenticating SPA, mobile app, or an API. In this video, I hope to help you decide which authentication package to choose as well as help you decide between Laravel Sanctum's token & session based authentications.

You can support me by giving my videos a & by subscribing to the channel ️

--- Table of Contents ---
00:00 - Intro
00:30 - Built-in cookie-based session auth
00:43 - Laravel passport & oAuth
01:12 - Laravel sanctum - overview
01:51 - Laravel sanctum - authenticating the mobile app
02:16 - Laravel sanctum - authenticating another service
02:36 - Laravel sanctum - authenticating spa