Laravel API Authentication using JWT Tokens
In this article we will build an Authentication System using Laravel Sanctum.
Laravel login and generate JWT Token with Laravel Sanctum using HttpOnly Cookies. We will Login using JWT( JSON Web Token ) which is the standard method for SPA Authentications. We will not use the traditional “Bearer method” but instead we will login using HttpOnly cookies which is a more secure authentication.
This video can be combined with other videos:
React and Laravel JWT Authentication: https://www.youtube.com/playlist?list...
VueJS and Laravel JWT Authentication: https://www.youtube.com/playlist?list...
Angular and Laravel JWT Authentication: https://www.youtube.com/playlist?list...
NextJS and Laravel JWT Authentication: https://www.youtube.com/playlist?list...
NuxtJS and Laravel JWT Authentication: https://www.youtube.com/playlist?list...
Svelte and Laravel JWT Authentication: https://www.youtube.com/playlist?list...
You can find the source code here: https://github.com/scalablescripts/au...
Check more tutorials: Laravel RESTful APIs Advanced: Docker, Redis, Stripe: https://scalablescripts.com/p/laravel...
Get access to all my courses for 15$/month: https://scalablescripts.com/p/membership