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.
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?
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!
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 .
⚛ 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
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.
You’re the best! Thanks for sticking around
You should show how to include the cleanup function to remove the set interval
Great explanation! Thanks 😎😎
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?
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!
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 .
Not everything is Laravel. It's important to know how things works behind the scenes.