No video

React and JWT

  Рет қаралды 563

Coding Tutorials

Coding Tutorials

Күн бұрын

Angular does it. Blazor does it. React does it too. Let's look at Axios Interceptors.
Source code available at:
github.com/Jas...
Server code available at:
github.com/Jas...
Topics include:
- React state hooks
- Axios HTTP library
- Storing data across components with React contexts
- Managing lifecycles with effect hooks
- Adding Axios interceptors

Пікірлер: 10
@CodingTutorialsAreGo
@CodingTutorialsAreGo Жыл бұрын
I'm jumping in at the deep end here with React. Would you be interested in some more introductory videos? Let me know in the comments. Source code available at: github.com/JasperKent/react-jwt Server code available at: github.com/JasperKent/WebApi-Authentication Remember to subscribe at kzbin.info/door/qWQzlUDdllnLmtgfSgYTCA And if you liked the video, click the 👍.
@MichaelKire
@MichaelKire Жыл бұрын
Worth noting that using a context will effectively rerender everything below its provider when its data changes, meaning that in this case, logging in will probably make the entire app rerender. By using zustand or similar you can prevent this.
@CodingTutorialsAreGo
@CodingTutorialsAreGo Жыл бұрын
Absolutely, but I wanted to keep it relatively simple. In this particular app, I don't think the rerender on login is a major issue, but it could be in others.
@JSWarcrimes
@JSWarcrimes Жыл бұрын
Greate content! Keep it up!
@sauravbhatta5303
@sauravbhatta5303 Жыл бұрын
Thanks for the great series. Once refresh token is completed, can you implement multiple login providers and also implement adding roles to the jwt token? I think these are real practical examples that one should be familiar with. Thanks!
@CodingTutorialsAreGo
@CodingTutorialsAreGo Жыл бұрын
I'll try to get on to those.
@diegomelgar2696
@diegomelgar2696 4 ай бұрын
Hi Jasper, thanks again for your high quality videos! What happens when the user refresh the page in the summary page? Will the user still fetch the summary knowing that the JWt is still valid?
@CodingTutorialsAreGo
@CodingTutorialsAreGo 4 ай бұрын
Yes, the fetch will still work because the JWT is stored in session storage and the session persists for the lifetime of the tab. So a refresh within the tab doesn't lose the JWT.
@ariesandhi
@ariesandhi 5 ай бұрын
Dear Sir, can you make a video about JWT and using Vue.js?
@CodingTutorialsAreGo
@CodingTutorialsAreGo 5 ай бұрын
I really don’t know Vue so I’ll have to give that one a miss.
Blazor Authentication with JSON Web Tokens
31:19
Coding Tutorials
Рет қаралды 9 М.
Blazor RenderFragment
23:11
Coding Tutorials
Рет қаралды 1,8 М.
So Cute 🥰
00:17
dednahype
Рет қаралды 42 МЛН
Violet Beauregarde Doll🫐
00:58
PIRANKA
Рет қаралды 47 МЛН
مسبح السرير #قصير
00:19
سكتشات وحركات
Рет қаралды 11 МЛН
Unveiling my winning secret to defeating Maxim!😎| Free Fire Official
00:14
Garena Free Fire Global
Рет қаралды 16 МЛН
React Hooks Crash Course (useMemo, useCallback and more).
31:49
developedbyed
Рет қаралды 84 М.
Refactoring a React component - Design Patterns
15:19
Cosden Solutions
Рет қаралды 96 М.
JavaScript Fetch API - One Mistake I ALWAYS MAKE!
4:47
James Q Quick
Рет қаралды 25 М.
Loading Your React Data Like This is Awesome
13:27
Josh tried coding
Рет қаралды 108 М.
I Never Want to Create React Tables Any Other Way
5:40
Josh tried coding
Рет қаралды 260 М.
So Cute 🥰
00:17
dednahype
Рет қаралды 42 МЛН