Implementing JWT access and refresh token authentication with Django & React using the timed interval method.
Check out my Python Django course: https://dub.sh/rlKmDgY
Source Code: https://github.com/divanov11/refresh-...
Axios Interceptor Method: • Refreshing Tokens With Axios Interceptors
Timestamps
00:00 - Intro
4:15 - Setting Up Django Project
12:15 - Adding Django REST Framework
15:24 - Adding Simple JWT
22:00 - Customizing JWT Settings
23:25 - Access & Refresh Token Lifespan
24:32- Rotating Refresh Tokens
26:25 - Blacklisting Refresh Tokens
30:00 - Customizing Token Claims
34:38 - CORS Configuration
38:30 - Setting up React Files
51:25 - Private Routes
58:25 - Setting up AuthContext
1:04:24 - Login User
1:20:00 - Get user state from local storage on load
1:29:45 - Logout User
1:31:30 - Refresh & Rotating Tokens
1:45:10 - Setting Up User Items in DB
1:52:20 - Adding Protected Endpoints
1:54:30 - Rending user items
2:01:35 - Logout user on fail
2:04:45 - Refreshing Token on load
On this page of the site you can watch the video online Authentication & Refreshing Tokens Implementation with a duration of hours minute second in good quality, which was uploaded by the user Dennis Ivy 17 October 2021, share the link with friends and acquaintances, this video has already been watched 259,725 times on youtube and it was liked by 5.2 thousand viewers. Enjoy your viewing!