Auth Refresh Tokens - React Tutorial 48

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 10

  • @codebreakthrough
    @codebreakthrough  2 роки тому +1

    ⚛ FREE React Course (download & bonus content) - calcur.tech/free-react-course
    React UA-cam Playlist - calcur.tech/react-playlist
    Code - github.com/CalebCurry/react
    github.com/CalebCurry/react-backend-django
    Backend Python - www.codebreakthrough.com/backend-python

  • @SauerkrautNCheese
    @SauerkrautNCheese 2 роки тому +8

    Okay, I’ve been subscribed a couple of years now. You were doing SQL videos when I needed them back in college, and now I’m doing a react job that requires the use of token based authentication, and last night I was stuck on a refresh token problem and here you are again, stepping in to save me.
    Caleb Curry you’re my hero.

  • @codesymphony
    @codesymphony 2 роки тому +3

    You should show how to include the cleanup function to remove the set interval

  • @tomekk3569
    @tomekk3569 5 місяців тому

    Great explanation! Thanks 😎😎

  • @Nullfighter
    @Nullfighter Рік тому +2

    Hey Caleb, I have a UserContextProvider component that returns its children wrapped in a UserContext.Provider. I was trying to do your UseEffect function within the aformentioned component. When I log in, the refresh interval starts as expected (after checking if the user is logged in). But when I log out, the interval does not stop. I thought it would, because I thought my isAuthenticated value would become false. Do I just need to run clearinterval() in the useeffect's cleanup?

    • @Nullfighter
      @Nullfighter Рік тому +1

      Great videos btw. I have been building my app out and then looking for your relevant videos when I get stuck. I also used your C# series to learn the language and have a C# API as the backend for my React app!

  • @farhadvakilijamil2987
    @farhadvakilijamil2987 Рік тому +2

    Really Bro????🙃🙃🙃🙃. Are you kidding me??? which wise programmer do it just like you? have you every worked with laravel ? if you worked wih laravel you understood laravel framework refresh token in every post request. not just like you .

    • @ArthurSilva-mb5fq
      @ArthurSilva-mb5fq 6 місяців тому

      Not everything is Laravel. It's important to know how things works behind the scenes.