That's fantastic to hear! I'm glad the series has been helpful for your project. Your support and enthusiasm motivate me to continue creating valuable content.
Hey, I'm trying to create a context for my navbar to display some user properties that can change over time. I want to update this context both when the token is refreshed and in some client-side components. For example, the user has a number that ranges from 1 to 5 and increases every 4 hours. Sometimes, this number might decrease on the site. I would like to update the navbar context every time the token is refreshed (using the refreshToken function in authOptions) and also when certain client-side components are used. Is this possible?
Hey @tutuacs2827! Use React's Context API to manage and update user properties. Update the context in your refreshToken function and in client-side components as needed. This will keep your navbar in sync with the latest data. If you need more details, feel free to ask!
Could we create a video illustrating a scenario where a user attempts to log in on multiple devices? This method won't support refreshing tokens across all active login sessions.
An option for this is to store refresh tokens in relation to the user, so a user can have several refresh tokens, making it possible to even invalidate sessions, have a limit on connected devices, etc.
That's a great suggestion! Role-based authorization (RBA) is a crucial aspect of building secure applications. I'll definitely consider adding more content on RBA to the course.
Hey Developers! Please Like, Share, Subscribe, and comment your thoughts below-your support means a lot to me! ❤❤❤
This particular series has come handy for a particular project i actually want to start, keep up the energy.
That's fantastic to hear! I'm glad the series has been helpful for your project. Your support and enthusiasm motivate me to continue creating valuable content.
Dude thank you so much for this video. It saved me so much time!
Thanks 🙏, I am glad it was helpful
Keep up the great work!
Thank you! I appreciate the encouragement. I'll keep doing my best! 😊
Excellent…🔥🔥🔥💯🏄♂️ thank you 🙏
You're very welcome! I'm glad I could help. ❤️❤️
Hey, I'm trying to create a context for my navbar to display some user properties that can change over time. I want to update this context both when the token is refreshed and in some client-side components.
For example, the user has a number that ranges from 1 to 5 and increases every 4 hours. Sometimes, this number might decrease on the site. I would like to update the navbar context every time the token is refreshed (using the refreshToken function in authOptions) and also when certain client-side components are used. Is this possible?
Hey @tutuacs2827! Use React's Context API to manage and update user properties. Update the context in your refreshToken function and in client-side components as needed. This will keep your navbar in sync with the latest data. If you need more details, feel free to ask!
Can I have the name of the theme and the icon pack you used in the video please? They look interesting. Good video
Hi, Material icons, bearded theme and jetbrains font
How about storing refresh token in a http cookie instead of sending it in a response?
Yes we can do that as well. 💯
@@SakuraDev ❤🔥
Could we create a video illustrating a scenario where a user attempts to log in on multiple devices? This method won't support refreshing tokens across all active login sessions.
I will search for the solution and create a video about that.
An option for this is to store refresh tokens in relation to the user, so a user can have several refresh tokens, making it possible to even invalidate sessions, have a limit on connected devices, etc.
@@Luizimbatera Thanks for sharing
Please add more features like role based authorization
That's a great suggestion! Role-based authorization (RBA) is a crucial aspect of building secure applications. I'll definitely consider adding more content on RBA to the course.
@@SakuraDevThanks pro