Refreshing Tokens With Fetch | Custom Interceptor

Опубликовано: 15 Октябрь 2024
на канале: Dennis Ivy
18,268
346

Refresh JSON Web Tokens by building a custom wrapper around fetch calls in order to update tokens before OR after responses

Source Code: https://github.com/divanov11/refresh-...
Starting Code: https://github.com/divanov11/refresh-...

Related videos:
Refreshing Tokens With Axios Interceptors:    • Refreshing Tokens With Axios Intercep...  
Authentication & Refreshing Tokens Implementation:    • Authentication & Refreshing Tokens Im...  

Timestamps

00:00 - Intro
2:20 - Code Recap
7:18 - Custom Fetch Wrapper
22:00 - Testing Custom Fetcher
26:40 - Update token After response fail
30:20 - Custom Hook