Refreshing Tokens With Axios Interceptors

Dennis Ivy
Dennis Ivy
86.7 هزار بار بازدید - 3 سال پیش - Implementing JWT access and refresh
Implementing JWT access and refresh token authentication with Django & React using axios interceptor method. This video is a continuation of my last project that can be found here: Authentication & Refreshing Tokens Im...

Starter Code: https://github.com/divanov11/refresh-...
Final Source code: https://github.com/divanov11/refresh-...


Axios Documentation: https://axios-http.com/


Timestamps:
00:00 - Intro
00:53 - What are Interceptors
2:42 - Resources
3:30 - Code Recap
10:00 - Create Axios Instance
16:05 - Using Axios Instance
18:05 - Adding Interceptor
22:34 - Checking Token Expiration
26:50 - Getting New Token
30:45- Custom useAxios() Hook
3 سال پیش در تاریخ 1400/07/27 منتشر شده است.
86,785 بـار بازدید شده
... بیشتر