- 173
- 978 088
cdruc
Romania
เข้าร่วมเมื่อ 17 ม.ค. 2013
วีดีโอ
419 CSRF Token Mismatch - Laravel Sanctum
มุมมอง 8K8 หลายเดือนก่อน
419 CSRF Token Mismatch - Laravel Sanctum
Debugging Laravel Sanctum CORS errors
มุมมอง 3.4K8 หลายเดือนก่อน
Debugging Laravel Sanctum CORS errors
Toggle Terminal in ZED
มุมมอง 6K9 หลายเดือนก่อน
Everyone is talking about this new, super fast, crisp, new editor, called ZED. Some go as far to say it's the VSCode killer. 😱 I'm not particularly in love with VSCode, so I just had to give Zed a try - and I like it so far!
Laravel Authentication for React Native Apps using Breeze and Sanctum
มุมมอง 10K9 หลายเดือนก่อน
Timestamps: 00:00 - Intro 00:15 - React Native setup 00:35 - Navigation 01:38 - FormTextField component 03:40 - Login 06:34 - Validation errors 07:55 - Loading the user 08:37 - Custom axios instance 09:24 - AuthService & token management 12:00 - Share user via AuthContext 13:34 - Splash screen 14:16 - Logout 16:17 - Auto-include token using an axios interceptor 17:14 - Registering users 20:10 -...
Laravel Sanctum Google Authentication
มุมมอง 7K10 หลายเดือนก่อน
00:00 - Intro 00:21 - Diagram 01:28 - Google Project & Credentials 02:52 - Auth implementation
Laravel Sancum - automatic CSRF cookie retrieval
มุมมอง 1.8K11 หลายเดือนก่อน
Laravel Sancum - automatic CSRF cookie retrieval
Laravel "Remember me" - How it Works
มุมมอง 3.5K11 หลายเดือนก่อน
Laravel "Remember me" - How it Works
Handling Axios Errors in Vue.js with Laravel Sanctum
มุมมอง 2.3Kปีที่แล้ว
Handling Axios Errors in Vue.js with Laravel Sanctum
Is that LocalStorage user even authenticated?!
มุมมอง 1.2Kปีที่แล้ว
Is that LocalStorage user even authenticated?!
TypeScript Types for Laravel Validation Errors
มุมมอง 1.1Kปีที่แล้ว
TypeScript Types for Laravel Validation Errors
Vue Navigation Guards & LocalStorage Security Concerns
มุมมอง 1.6Kปีที่แล้ว
Vue Navigation Guards & LocalStorage Security Concerns
Syncing Pinia Stores with LocalStorage across Tabs
มุมมอง 2.7Kปีที่แล้ว
Syncing Pinia Stores with LocalStorage across Tabs
Chrome Dev Tools: Screenshot Like a Pro!
มุมมอง 1.2Kปีที่แล้ว
Chrome Dev Tools: Screenshot Like a Pro!
Simple Cookie Retrieval: One Effortless Method
มุมมอง 1.3Kปีที่แล้ว
Simple Cookie Retrieval: One Effortless Method
Simplify Vue Forms with this useForm composable
มุมมอง 3.3Kปีที่แล้ว
Simplify Vue Forms with this useForm composable
Vue State and LocalStorage: Perfect Sync Made Simple!
มุมมอง 10Kปีที่แล้ว
Vue State and LocalStorage: Perfect Sync Made Simple!
Wow, found what i was searching , please Create sorting and paginatiin
I am trying like abc.localhost sending request to api.locahost. the cookies are not getting set and say invalid host url
Thsnk you❤
Thanks Bro More power to you ❤
Hello, thank you for this content. I still having 401 Unauthenticated error from /api/user request. Can you share your repository? Thanks
As a newbie in ReactNative this exactly what I was looking for. Thank you very much.
Man you are great at this! I wanted to make a video about these problems that people face but there's no need, you explained everything! Great job.
If anyone who still getting {"message":"Unauthenticated."} issue. Please try adding Origin : localhost:5173 to the header
Thank you so much. I wasn't sure where i made my mistake
Great video, thanks
pls make real world project with laravel typescript vue , I like the way you explain
wow onScopeDispose is very useful and it reduces a lot of complexity to handle unmout stuff
thank you, it's help me loat....
Would be a lot better if you can provide a repo :)
Hi there ! How would you handle token revalidation ? I'm using symfony and in my case I have a revalidation token and specific route to call laravek doesn't have this behavior ?
hello from what I can remember there's no revalidation/refresh tokens using laravel sanctum. if you need that you'd probably have to adjust/build it yourself.
Out of curiosity, what purpose does the device_name serve?
this is very helpful. its the best video . thanks for this
Thanks very much, it helped a lot!
can you show getCookie code?
Great tutorial! Thanks for providing it.
Why do we have to login everytime after getting the xsrf token and laravel session before we can access the protected route? Is there a workaround thats the issue am currently facing
you shouldnt have to. something is wrong in your setup
After a lot of debug, I was able to solve it just now by implementing my own login logic instead of using Breeze auth api provided by defaults
What's the name of your vs code's color theme please
Bro you saved my life. Your video should be included in official docs
you from Iași?
Why is the CSRF token generated previously of login? I mean I thought, it's not necessary that the user have any ID if he doesn't identify, doesn't it?
the token is associated to the session id. and every visitor, logged in or not, has one
@@cdruc Thanks for answer, Your content is pretty good. I hope your channel grows much more; it deserves it 😋😋
how about performance if we have a ton of value in that array?
Great explanation!
Good sir my issue fixed
Exatamente o que eu tava procurando, valeu demais 🎉
I want to know that we will put route /login in web.php, after authenticated and get access token, all api link i request with different methods can re-use authenticated session?
This is the most clearly video explain about Laravel Sanctum and Cookie based. Thanks so much!! ❤
Ofcourse your video is amazing for beginners. If you provide GitHub link that is helpful for us.
Cookie is sent but same way in header isn't csrf cookie also sent by browser .
Extremely helpful, thanks a lot!!
You explain it so perfectly!
I love you, man
You are a saviour man, thnak you!
i dont know but i think i watched your laravel sanctum videos but im still getting 419 errordamn
Oh man thanks a lot!!. I had already given up on Sanctum and was going to replace it with jwt or bearer tokens until I saw your video. You're the best!!
Today i completed this tasks, and learned how to use v-bind. Thanks, guy!
I don't get how you can build an API... Where you're using postman or similar. You're not coming from a server, just a desktop app .. what does the server/VM running the API think the referer is? There's no website making the request... Just an app. Really confuses me
you add the referer header yourself: Laravel Sanctum and Postman th-cam.com/video/My61OicxPRo/w-d-xo.html
💘 awesome
The "CSRF Missmatch" is mostly the combination of scripts and version problems. I have tested "axios" version 1.1.3 working with Laravel 9, 10, 11 all fine. I have tested "axios" vesrion 1.5.1 working with Laravel 9 & 10 but failing with 11. I have tested "axios" version above 1.6 and failing with Laravel 9, 10 & 11. Can anyone else test and report?
axios 1.7 vẫn không hoạt động.
Can this be used for Google authentication on mobile app?
I try to do this but it always execute what it is in the clousure
In that matter there is no difference between browser side cookie vs local storage, the general best practice is to store it as "HttpOnly" server-side, but I do not see that when client and backend are separately developed.
Learning go as my 3rd language. I did not you can parse json that way. Thanks a lot for the very interesting project.
Maybe you can make a nice tutorial of laravel reverb with react native also? Cannot find a lot about it but i am very curious how this works.
Hello, is it possible to use this as reference material? I'm learning Go and would like to buikd along with you with my own ouch, and am asking to see in case I ever put it in a public repository. (If I ever do, I will naturally leave a link to this video) Thank you!
hey, yeah, use it however you want you can find the code here as well: cdruc.com/go-weather-cli
On my local setup, My SPA is an angular app on app.domain.test:5173 My backend is on domain.test running with laravel herd I have tried everything but the cookie is just not being set in the browser