Skip to content

coderbk197/reactjs-handle-refresh-token

 
 

Repository files navigation

handle refresh token with axios, umi-request using interceptors and token management package

1. Interceptors: After all requests failed, we will call a request to take a new access token after that retry all requests which failed

alt text

2. Token management package: Check access token expire if token expire will call a request to take a new access token after that call requests

NPM: https://www.npmjs.com/package/token-management Brainless: https://www.npmjs.com/package/brainless-token-manager

alt text

About

Handle refresh token with fetch, axios, umi-request and token management package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 89.4%
  • CSS 8.4%
  • HTML 1.7%
  • Shell 0.5%