Laravel Authentication for React Native Apps using Breeze and Sanctum

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ย. 2024

ความคิดเห็น • 48

  • @bijayaprasadkuikel5162
    @bijayaprasadkuikel5162 5 หลายเดือนก่อน +6

    All of these things in just 23 minutes. You are so amazing man. You are really underrated in Laravel community.

  • @basic-1337
    @basic-1337 5 หลายเดือนก่อน +2

    THIS VIDEO DESERVE ATLEAST 100K VIEWS
    IDC, IM SHARING TO ALL PLACE I KNOW

  • @shofada
    @shofada 5 หลายเดือนก่อน

    Wow! Awesome! Very well done. I really appreciate the teaching style where you first show an implementation and then refactor it in the same breath. I would love to see how you handle authorization as well in a Laravel + React Native Application.

  • @VinayKesharwani
    @VinayKesharwani 4 หลายเดือนก่อน +1

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

  • @fitodac
    @fitodac 25 วันที่ผ่านมา

    Thank you, and regards Argentina. You helped me a lot with this video.

  • @oketafred
    @oketafred 5 หลายเดือนก่อน

    Always learning new concepts from your videos 🔥

  • @andrerinas5052
    @andrerinas5052 5 หลายเดือนก่อน +1

    That was simply amazing! Thank you!

  • @soy-luisarrieta
    @soy-luisarrieta 5 หลายเดือนก่อน

    Fascinating! I followed the video and everything worked perfectly. I would have liked for you to use Laravel Breeze API authentication instead of creating the controllers since the main difference I find is that you don't use CSRF or token cookies. Nonetheless, I greatly appreciate your contribution!

    • @grim_0403
      @grim_0403 2 หลายเดือนก่อน

      hello can you please share the source code?

  • @bowaller6892
    @bowaller6892 5 หลายเดือนก่อน

    Awesome video as always Constantin!!! I hope to make a video with Laravel and Flutter...

  • @manishgautam2424
    @manishgautam2424 5 หลายเดือนก่อน

    describing way was superb

  • @Netvirux
    @Netvirux 19 วันที่ผ่านมา

    Hello please I'm working on a VTU website using Laravel 11 as the backend and a native app. I want to make my website's API accessible to other VTU websites, allowing them to buy data just like my native app users can. Instead of creating separate endpoints for API and native app users, I thought of using the same endpoint for both. However, I'm unsure how to handle authentication and authorization. I noticed that the Sanctum token isn't a unique key that always returns the same value. Please help me understand how to approach this and secure my API. Thank you!

  • @millennia
    @millennia หลายเดือนก่อน +1

    Please release a full course on react native and laravel

  • @sevaske
    @sevaske 5 หลายเดือนก่อน

    Subscribed, thank you

  • @thedavistheory7674
    @thedavistheory7674 5 หลายเดือนก่อน

    Excellent video!, btw would you at some point make a video using fortify with sanctum? I think its most interesting feature is 2fa

  • @juliian6838
    @juliian6838 2 หลายเดือนก่อน

    Hello bro, I'm having issues with Laravel when making a request to the endpoint. I strongly suspect it's because I'm reusing a project with Laravel 11, which has been configured with Sanctum + Breeze, especially for SPAs that work with session cookies. When I make the request in React Native, the error I'm getting is 'Axios Network Error'. I haven't been able to debug much, but I noticed in the catch error it mentions 'withCredentials', which leads me to believe I should use a clean Laravel setup with Sanctum for APIs.

  • @alimosbah
    @alimosbah หลายเดือนก่อน

    Has the project been uploaded to github?

  • @khangle6872
    @khangle6872 3 หลายเดือนก่อน

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

  • @juliian6838
    @juliian6838 2 หลายเดือนก่อน

    Hey man, by the way, the laravel project is blank? or you have installed sanctum or breeze?

    • @cdruc
      @cdruc  2 หลายเดือนก่อน +1

      read the title of the video

  • @emekaorjiani
    @emekaorjiani 5 หลายเดือนก่อน

    Please can you include the source code, this is what I've been looking for, thank you so much its so precise and well explained

    • @arpi7
      @arpi7 4 หลายเดือนก่อน

      Did you find the source code? if so can you share?

  • @Dev-su4mi
    @Dev-su4mi 5 หลายเดือนก่อน

    Thanks for video! What is your vs code font?

  • @holakonoob
    @holakonoob 5 หลายเดือนก่อน

    heyy cdruc i hope ur doing fine, im wondering if there's any information about your auth course altho with this kinda of videos you're already explain alot thanks you

  • @topalek
    @topalek 5 หลายเดือนก่อน +1

    @cdruc, hi, can you update your package laravel-langscanner to laravel 11

    • @cdruc
      @cdruc  5 หลายเดือนก่อน +1

      Lol, glad to see someone uses that. I’ll do it later today 👊

    • @topalek
      @topalek 5 หลายเดือนก่อน

      @@cdruc thanks a lot

  • @RavleR
    @RavleR หลายเดือนก่อน

    Does anybody know what is the theme?

  • @immortal_code
    @immortal_code 5 หลายเดือนก่อน

    thansk alot

  • @DineshPalSingh-z7u
    @DineshPalSingh-z7u 12 วันที่ผ่านมา

    can i get the whole code ?

  • @SamBeale-ro2vw
    @SamBeale-ro2vw 5 หลายเดือนก่อน

    Help! logout gives me the error: "cannot read property 'name' of null".
    for some reason it still tries to load the home screen instead of login. everything works and it does logout the user but you have to refresh before it goes to the home screen.
    any ideas?

    • @cdruc
      @cdruc  5 หลายเดือนก่อน

      Hey, that's weird. Have you made *anything* different?
      make sure you're getting the user from the AuthContext and that you're conditionally rendering the Homepage: th-cam.com/video/rBcgNKt2FZs/w-d-xo.html

    • @SamBeale-ro2vw
      @SamBeale-ro2vw 5 หลายเดือนก่อน

      @@cdruc Hey, i've managed to get it working and returning to the login screen but i had to add '?' on the user.
      Welcome home, {user?.name}
      without the question mark on user, I click logout and get an error on the page "cannot read property 'name' of null".

    • @arpi7
      @arpi7 4 หลายเดือนก่อน

      Sam, can you share the source code?

    • @SamBeale-ro2vw
      @SamBeale-ro2vw 4 หลายเดือนก่อน

      Hey @@arpi7 , sure:
      ///////////////////// HomeScreen.tsx ////////////////////////////////////////////////
      export default function () {
      const {user, setUser} = useContext(AuthContext);
      async function handleLogout(): Promise {
      console.log('logged out!!!');
      await logout();
      setUser(null);
      }
      return (
      Welcome home, {user?.email}

      );
      }
      //////////////////////////////////////////////////////////////////////////////
      /////////////////////// App.tsx ///////////////////////////////////////////
      const Stack = createStackNavigator();
      const Tab = createBottomTabNavigator();
      export default function App() {
      const [user, setUser] = useState();
      const [status, setStatus] = useState('loading');
      useEffect(() => {
      async function runEffect(): Promise {
      try {
      console.log('tried to load user');
      const user = await loadUser();
      setUser(user);
      } catch (e) {
      console.log('failed to load user', e);
      }
      setStatus('idle');
      }
      runEffect();
      }, []);
      if (status === 'loading') {
      return ;
      }
      function MyTabs() {
      return (


      );
      }
      return (

      {!user ? (


      ) : (

      )}

      );
      }

    • @SamBeale-ro2vw
      @SamBeale-ro2vw 4 หลายเดือนก่อน

      Hey @@arpi7, I tried to post my code but youtube removed my comment

  • @kazuyuki634
    @kazuyuki634 2 หลายเดือนก่อน

    Woow i didnt think this one would work
    CN you also do it in flutter
    I wanna knowif it work there too

    • @cdruc
      @cdruc  หลายเดือนก่อน

      here’s a crazy idea:
      *you* do it with flutter and let us know if it worked😄
      my bet is that it will

  • @top10acousticshowslist77
    @top10acousticshowslist77 5 หลายเดือนก่อน +1

    hi can you create a video on new google place api

  • @manishgautam2424
    @manishgautam2424 5 หลายเดือนก่อน

    are you still use this github druc

  • @manishgautam2424
    @manishgautam2424 5 หลายเดือนก่อน +1

    i have the code do anyone need that

    • @bourchadanada8998
      @bourchadanada8998 5 หลายเดือนก่อน

      yes please

    • @gillemomeni6226
      @gillemomeni6226 4 หลายเดือนก่อน

      Yes please

    • @gillemomeni6226
      @gillemomeni6226 4 หลายเดือนก่อน

      Can you share the link to your repo?

    • @patrykimioa3003
      @patrykimioa3003 3 หลายเดือนก่อน

      Hi, please share it

    • @bye835
      @bye835 หลายเดือนก่อน

      yes