Authentication in Vue using Laravel Sanctum
Video Statistics and Information
Channel: Andrew Schmelyun
Views: 41,300
Rating: 4.8937583 out of 5
Keywords: laravel, vue, vue.js, web development, laravel tutorials, web dev tutorials, php
Id: eeMtmkDZ72Q
Channel Id: undefined
Length: 23min 6sec (1386 seconds)
Published: Wed May 06 2020
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
Hey everyone, I'm back with another tutorial! I've been keeping an eye on this package every since Taylor dropped it earlier this year. A project I took on recently had me dive into it, and it's been an absolutely dream to work with. Much better than jwt-auth in my opinion.
This video takes a quick surface-level approach into getting a simple dummy backend set up with Laravel, a Vue component mounted to a Blade template, and then how to make authenticated API calls between the two.
Let me know what you think!
I've been using https://github.com/tymondesigns/jwt-auth for years now in combination with https://github.com/websanova/vue-auth, and it works perfectly for all my use-cases... I was wondering if you could tell me of any benefits to using Sanctum over jwt-auth ?
Saved for later :)
How is making a get request to fetch the csrf-cookie that is not already in the page still secure? Real question out of actually not knowing.