- Видео 173
- Просмотров 802 883
cdruc
Румыния
Добавлен 17 янв 2013
Видео
Laravel Sanctum 401 Unauthenticated
Просмотров 913Месяц назад
Part of my upcoming masteringauth.com - Join the list!
419 CSRF Token Mismatch - Laravel Sanctum
Просмотров 1,1 тыс.Месяц назад
Part of my upcoming masteringauth.com - Join the list!
Debugging Laravel Sanctum CORS errors
Просмотров 785Месяц назад
Part of my upcoming masteringauth.com - Join the list!
Toggle Terminal in ZED
Просмотров 1,8 тыс.2 месяца назад
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
Просмотров 3 тыс.2 месяца назад
I'm making a course on Laravel Sanctum authentication: masteringauth.com 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-i...
Laravel Sanctum Google Authentication
Просмотров 2,6 тыс.3 месяца назад
I'm making a course on Laravel Sanctum SPA authentication: masteringauth.com 00:00 - Intro 00:21 - Diagram 01:28 - Google Project & Credentials 02:52 - Auth implementation
Storing Auth Tokens in LocalStorage
Просмотров 38 тыс.3 месяца назад
I'm making a course on Laravel Sanctum. Check it here: masteringauth.com
Laravel Sancum - automatic CSRF cookie retrieval
Просмотров 1,2 тыс.4 месяца назад
I'm making a course on Laravel Sanctum SPA authentication: masteringauth.com
Laravel "Remember me" - How it Works
Просмотров 2,1 тыс.4 месяца назад
I'm making a course on Laravel Sanctum SPA authentication: masteringauth.com
Laravel Sanctum SPA Auth Overview
Просмотров 6 тыс.4 месяца назад
I'm making a course on this stuff: masteringauth.com
Handling Axios Errors in Vue.js with Laravel Sanctum
Просмотров 1,7 тыс.4 месяца назад
Making a course on Laravel Sanctum: masteringauth.com - join the list to get it at a discount!
Is that LocalStorage user even authenticated?!
Просмотров 1,1 тыс.4 месяца назад
Is that LocalStorage user even authenticated?!
TypeScript Types for Laravel Validation Errors
Просмотров 9374 месяца назад
TypeScript Types for Laravel Validation Errors
Vue Navigation Guards & LocalStorage Security Concerns
Просмотров 1,3 тыс.4 месяца назад
Vue Navigation Guards & LocalStorage Security Concerns
Syncing Pinia Stores with LocalStorage across Tabs
Просмотров 1,9 тыс.4 месяца назад
Syncing Pinia Stores with LocalStorage across Tabs
Chrome Dev Tools: Screenshot Like a Pro!
Просмотров 8315 месяцев назад
Chrome Dev Tools: Screenshot Like a Pro!
Simple Cookie Retrieval: One Effortless Method
Просмотров 8545 месяцев назад
Simple Cookie Retrieval: One Effortless Method
Simplify Vue Forms with this useForm composable
Просмотров 2,6 тыс.7 месяцев назад
Simplify Vue Forms with this useForm composable
Axios setup for Laravel API requests
Просмотров 4,6 тыс.7 месяцев назад
Axios setup for Laravel API requests
Debugging Laravel Sanctum 401 response
Просмотров 2,4 тыс.8 месяцев назад
Debugging Laravel Sanctum 401 response
Laravel SPA Auth different domains
Просмотров 7 тыс.8 месяцев назад
Laravel SPA Auth different domains
GO structs: read and save as JSON
Просмотров 1,3 тыс.10 месяцев назад
GO structs: read and save as JSON
Vue State and LocalStorage: Perfect Sync Made Simple!
Просмотров 8 тыс.Год назад
Vue State and LocalStorage: Perfect Sync Made Simple!
Building a CLI application with Golang
Просмотров 31 тыс.Год назад
Building a CLI application with Golang
when i try localhost it works, but having trouble using Herd domain.
Very nice. This is almost identical to inertia form
Got error 405 method not allowed You should cover the problems not the best scenarios.
very nice video, love it
Nice video. Btw, you could use structuredClone from js which creates also a deep copy of the object without depend on lodash :D
More Vuejs tutorials please 💚
jsfiddle or github link if possible :) ?
Damn this is quite beautiful. I implemented something very similar from scratch; glad to see I wasn't just making up a needlessly convoluted mess. There are some abstractions here that are quite nice, but I'd be hesitant to implement in my codebase just because I know it would be difficult for other devs to follow. I sometimes need to prioritize explicit-ness over eloquence unfortunately... I try my best to consider future devs working in the codebase, who may be unfamiliar with these conventions.
Really well put together. Nicely done.
Wow, that is very useful, Thanks for sharing.
will you do another one for using socialize with react native?
The hooks system seems so powerfull !
2:00 Why install lodash when we have structuredClone()?
missing tallstack code snippet but i successfully implement it and it work like a charm 😍
i need a video for "Laravel 11 Sanctum SPA Authentication" please, i have watched all videos on youtube and google and ai websites with no solution, i need it soon as possible and i can pay for it, no problem
no way you watch all my videos 😂 There's little to no difference between Laravel 10 and 11 in terms of how sanctum SPA auth works. I can help you for free if you give me access to the repo + .env file. Send me an e-mail at druc[at]pinsmile.com 99.999% sure it's one of these: ruclips.net/video/M7gFCmyYcOU/видео.html ruclips.net/video/pZdzzKf0h3E/видео.html ruclips.net/video/O6ibPLFfAh0/видео.html
@@cdruc i have invited you on email
thanks! i just sent a PR with a possible fix
@@cdruc it's work good, thank you sooooo much.
@@cdruc it's work good, thank you sooooo much.
why is the video title "effortless"😅
people click on this stuff 😂 as with all things in life, everything becomes effortless once you put in the work 😀
Always learning new things from your videos 🔥🔥🔥
Fantastic explanation! Great job.
New sub! thank you for helping us
I dont understand what did I miss.I am still getting cORS errror..Any help?
well…what error are you getting?
@@cdruc thanka for the reply,I re run npm install and got it fixed.
There should be a pre cooked keybindings right?
best explanation of the topic I've come across! and fun fact, the config is typesafe by default... I love Nuxt! 🎉 one important clarification: if you dumped your config (or just payment api key) into the vue template (which is server rendered!), the paymentApiKey would actually get sent to the frontend. The hydration step would fail ofc, so nuxt would quickly overwrite the value quickly, but it would still be there in the network tab until the user refreshed their page. for the curious, that is why the UI "glitches" around 7:35, and if you pause the video just right, you can actually see the paymentApiKey in the browser -- he would have gotten warnings about this in the console. all this to say, definitely don't use your API keys for anything that directly interacts with the frontend _____ Again, awesome video! 🏆
what is the name of the editor please
Thanks a lot 🎉
why my cookie browser empty after get /sanctum/csrf?
spa and api domains are different, you messed up with the session_domain config value, you don’t have cors support_credentials set to true, you dont set credentials: include or withCredentials: true (axios) when making the request. any of these might cause it
Can you make a video about how to work with sanctum staging server with a domain and using localhost for frontend dev environment How to make the localhost talk to the staging and accept cookies without breaking the real staging frontend
still like it.
Well this is fun and all but the real trouble starts when you dive deeper and have to validate every post or get request back and forth to different api endpoints to get the right user ID and compare it to other columns in other relationships. Example, setting up a private chat in Laravel Reverb. Totally impossible.
ngl, i haven't tried reverb just yet 😂
nice, clean explanation
Hello Could you please guide how to modify default email verify mail template?
Thank you so much, i have been on this error for two days now
Thank you!!. This saved me
Thank you very much
Hey just looking into this problem myself. I am using laravel breeze and next.js but I don't understand why its become a problem now. Out of the box it worked fine and every now and then I would get this issue while trying to login but it would eventually fix it self. This time around its not going away so can you explain why this problem has come up?
Hey I watched the video again and check what my next.js front end was sending and it looks like for some reason it stopped sending the X-XSRF-TOKEN but it was still in the cookie so I just changed the Laravel backend to check there also for it as a temp work around. Thanks for the very helpful information.
hey, if you’re using axios, they stopped sending it automatically a while ago. you will have to tell it to include it by setting withXSRFToken: true
@@cdruc Thanks for informing me.
@@cdruc "hey, if you’re using axios, they stopped sending it automatically a while ago. you will have to tell it to include it by setting withXSRFToken: true" There are a few developers who just cried and said thank you very much for this comment.
I am completely stuck with the 401 Unauthorized error when trying to access api routes protected with sanctum. I tried everything I could, I just don't understand... I did watch your most recent video (ruclips.net/video/O6ibPLFfAh0/видео.html) in hope to solve my problem, but nothing seems to do the trick. The /sanctum/crsf-cookie and /login routes work. It's only the api ones protected by sanctum that are always unauthorized. Do I have to set the port of Postman to :5173? For infos, I am using Laravel 11.
Ok so I found the solution in this video : ruclips.net/video/_lfsvZZWsXE/видео.html. Am I forcing to use the Bearer token because Postman doesn't use the credentials?
Hello its me again, im having a problem with cookies it simultaneously pilling up which makes an 400 bad request error Cookie or Header too big. thanks again. i have this in my logout method Auth::guard('web')->logout(); $request->session()->invalidate(); $request->session()->regenerateToken();
I have not been able to use laravel/reverb because I cannot find a way to use cookie authentication instead of token authentication in private channels 😢
Seriously. Thank you so much!!!
Awesome
One of the best video I have seen on this topic! Thank you!
For laravel 11, SANCTUM_STATEFUL_DOMAINS shouldn't contain Example SANCTUM_STATEFUL_DOMAINS=127.0.0.1:8100 is correct SANCTUM_STATEFUL_DOMAINS=127.0.0.1:8100 is wrong
thanks for the vedio very helpful
So I am using the NextJS starter kit from Laravel Breeze. I have Laravel 11 set up as an API backend, but even after following all of your auth videos, I am still unable to fix my issue. I am not able to see the X-XSRF-TOKEN header in the request headers, however it should be included by default if I am not mistaken since I have: withCredentials: true, withXSRFToken: true,
Just so we're clear, we're talking about this one, right?: github.com/laravel/breeze-next/tree/master Is the starter kit not working at all? If it is working, and you have some pages where it's not, make sure you import axios from the lib directory - other than that I don't see why it wouldn't work. also, if you can share like a repo or something I'll gladly have a look
I think YT is removing my comment when I include my repo urls.
ugh, yes it does😪 can you e-mail me at druc@pinsmile.com ?
You are awesome in details understanding
Thank you, it was just what I needed. By the way, I find your videos very interesting. Keep it up
I followed your instructions and everything works well as far as the authentication is concerned. But if i try to fetch images using await fetch("localhost:8000/storage/images/xyz.png It gives CORS error (even I created the symlink using artisan storage:link. Any way to solve this.
mmm, not sure why you would fetch images using xhr requests. Is there like a special case of some sorts? If not, you should be able to just <img src="localhost:8000/storage/images/xyz.png" /> If indeed you're dealing with a special case, there are only two ways to fix this: adjust your nginx/apache config to add cors headers or create a laravel route that loads and returns the resource from the public dir. The downside of the second approach is that the whole application has to start in order to send that file whereas the first approach returns the file directly (no php executed_
Thank so much, u save my day 🤭
Wow, the font on the editor looks amazingly beautiful! I fell in love with it. can you share it? and which color theme is this?
zed mono extended, bearded theme
Thanks! By adding 'SANCTUM_STATEFUL_DOMAINS', I was able to access my Laravel API from my mobile device using the local IP instead of 'localhost'. This was essential for my SPA, which also utilizes the same IP on another port.
You literally make the best videos for helping debug issues! Thankyou