cdruc
cdruc
  • Видео 173
  • Просмотров 802 883

Видео

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
Golang CLI hangman game
Просмотров 7326 месяцев назад
Golang CLI hangman game
Laravel CSRF explained
Просмотров 3,1 тыс.6 месяцев назад
Laravel CSRF explained
CORS in Laravel & Sanctum
Просмотров 7 тыс.6 месяцев назад
CORS in Laravel & Sanctum
Laravel Sanctum and Postman
Просмотров 7 тыс.7 месяцев назад
Laravel Sanctum and Postman
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
Nuxt 3 - environment variables
Просмотров 4,2 тыс.10 месяцев назад
Nuxt 3 - environment variables
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

Комментарии

  • @johnvergilbulac9919
    @johnvergilbulac9919 7 часов назад

    when i try localhost it works, but having trouble using Herd domain.

  • @orpheusohms
    @orpheusohms 9 часов назад

    Very nice. This is almost identical to inertia form

  • @ezz_dev
    @ezz_dev 11 часов назад

    Got error 405 method not allowed You should cover the problems not the best scenarios.

  • @Tofusky
    @Tofusky День назад

    very nice video, love it

  • @santicanabalramos667
    @santicanabalramos667 День назад

    Nice video. Btw, you could use structuredClone from js which creates also a deep copy of the object without depend on lodash :D

  • @iUmerFarooq
    @iUmerFarooq День назад

    More Vuejs tutorials please 💚

  • @nateg9
    @nateg9 2 дня назад

    jsfiddle or github link if possible :) ?

  • @ItsRyanStudios
    @ItsRyanStudios 2 дня назад

    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.

  • @Drumstix42
    @Drumstix42 2 дня назад

    Really well put together. Nicely done.

  • @QiroLab
    @QiroLab 2 дня назад

    Wow, that is very useful, Thanks for sharing.

  • @khangle6872
    @khangle6872 2 дня назад

    will you do another one for using socialize with react native?

  • @julienSibille
    @julienSibille 2 дня назад

    The hooks system seems so powerfull !

  • @saiv46
    @saiv46 3 дня назад

    2:00 Why install lodash when we have structuredClone()?

  • @AksoomHussain7866
    @AksoomHussain7866 3 дня назад

    missing tallstack code snippet but i successfully implement it and it work like a charm 😍

  • @hichamdev
    @hichamdev 3 дня назад

    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

    • @cdruc
      @cdruc 3 дня назад

      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

    • @hichamdev
      @hichamdev 2 дня назад

      @@cdruc i have invited you on email

    • @cdruc
      @cdruc 2 дня назад

      thanks! i just sent a PR with a possible fix

    • @hichamdev
      @hichamdev 2 дня назад

      @@cdruc it's work good, thank you sooooo much.

    • @hichamdev
      @hichamdev 2 дня назад

      @@cdruc it's work good, thank you sooooo much.

  • @drugoviic
    @drugoviic 3 дня назад

    why is the video title "effortless"😅

    • @cdruc
      @cdruc 3 дня назад

      people click on this stuff 😂 as with all things in life, everything becomes effortless once you put in the work 😀

  • @oketafred
    @oketafred 3 дня назад

    Always learning new things from your videos 🔥🔥🔥

  • @philmareu
    @philmareu 4 дня назад

    Fantastic explanation! Great job.

  • @potatosheep
    @potatosheep 5 дней назад

    New sub! thank you for helping us

  • @ila6545
    @ila6545 6 дней назад

    I dont understand what did I miss.I am still getting cORS errror..Any help?

    • @cdruc
      @cdruc 6 дней назад

      well…what error are you getting?

    • @ila6545
      @ila6545 4 дня назад

      @@cdruc thanka for the reply,I re run npm install and got it fixed.

  • @kishanbsh
    @kishanbsh 7 дней назад

    There should be a pre cooked keybindings right?

  • @ozzyfromspace
    @ozzyfromspace 7 дней назад

    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! 🏆

  • @WalidWalid-wg7rk
    @WalidWalid-wg7rk 10 дней назад

    what is the name of the editor please

  • @jacquesmatike9289
    @jacquesmatike9289 14 дней назад

    Thanks a lot 🎉

  • @mo0nix592
    @mo0nix592 16 дней назад

    why my cookie browser empty after get /sanctum/csrf?

    • @cdruc
      @cdruc 15 дней назад

      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

  • @karemsobhy8020
    @karemsobhy8020 19 дней назад

    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

  • @idelvertyondouii5787
    @idelvertyondouii5787 20 дней назад

    still like it.

  • @Daaboo
    @Daaboo 21 день назад

    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.

    • @cdruc
      @cdruc 21 день назад

      ngl, i haven't tried reverb just yet 😂

  • @imtanuki4106
    @imtanuki4106 22 дня назад

    nice, clean explanation

  • @abusalahamusazangi6507
    @abusalahamusazangi6507 22 дня назад

    Hello Could you please guide how to modify default email verify mail template?

  • @israeliloba
    @israeliloba 23 дня назад

    Thank you so much, i have been on this error for two days now

  • @23pointblank
    @23pointblank 23 дня назад

    Thank you!!. This saved me

  • @nabilkrissane
    @nabilkrissane 23 дня назад

    Thank you very much

  • @sonesay
    @sonesay 25 дней назад

    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?

    • @sonesay
      @sonesay 24 дня назад

      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.

    • @cdruc
      @cdruc 24 дня назад

      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

    • @sonesay
      @sonesay 23 дня назад

      @@cdruc Thanks for informing me.

    • @MyTekkiVideo
      @MyTekkiVideo 21 день назад

      @@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.

  • @Bukosaure
    @Bukosaure 26 дней назад

    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.

    • @Bukosaure
      @Bukosaure 26 дней назад

      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?

  • @user-vl1cs7yd5e
    @user-vl1cs7yd5e 27 дней назад

    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();

  • @Mateoo092
    @Mateoo092 27 дней назад

    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 😢

  • @steevenjackson667
    @steevenjackson667 28 дней назад

    Seriously. Thank you so much!!!

  • @jakubfrei3757
    @jakubfrei3757 28 дней назад

    Awesome

  • @VinayKesharwani
    @VinayKesharwani 29 дней назад

    One of the best video I have seen on this topic! Thank you!

  • @Gumshock
    @Gumshock Месяц назад

    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

  • @lahbouch
    @lahbouch Месяц назад

    thanks for the vedio very helpful

  • @FullMe7alJacke7
    @FullMe7alJacke7 Месяц назад

    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,

    • @cdruc
      @cdruc Месяц назад

      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

    • @FullMe7alJacke7
      @FullMe7alJacke7 28 дней назад

      I think YT is removing my comment when I include my repo urls.

    • @cdruc
      @cdruc 27 дней назад

      ugh, yes it does😪 can you e-mail me at druc@pinsmile.com ?

  • @user-mg8gf3ni4v
    @user-mg8gf3ni4v Месяц назад

    You are awesome in details understanding

  • @fraidygonzalezreinaldo1841
    @fraidygonzalezreinaldo1841 Месяц назад

    Thank you, it was just what I needed. By the way, I find your videos very interesting. Keep it up

  • @siyabdev
    @siyabdev Месяц назад

    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.

    • @cdruc
      @cdruc Месяц назад

      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_

  • @mtthainara
    @mtthainara Месяц назад

    Thank so much, u save my day 🤭

  • @Kora-zl5ln
    @Kora-zl5ln Месяц назад

    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?

    • @cdruc
      @cdruc Месяц назад

      zed mono extended, bearded theme

  • @luisarrieta1501
    @luisarrieta1501 Месяц назад

    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.

  • @coder236
    @coder236 Месяц назад

    You literally make the best videos for helping debug issues! Thankyou