Duration 2:9:53

Authentication & Refreshing Tokens Implementation

189 699 watched
0
4.1 K
Published 18 Oct 2021

Implementing JWT access and refresh token authentication with Django & React using the timed interval method. Source Code: https://github.com/divanov11/refresh-token-interval Axios Interceptor Method: /watch/MoBGdTm1-611G 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

Category

Show more

Comments - 267