This project was developed in response to feedback and discussions on this gist
Background: When the index page loads, you may encounter two alert dialogs. These are triggered by unauthorized request errors, caused by attempts to access the API with an invalid token. The application then automatically initiates a refresh token request to retrieve a new authentication token. Once the new token is obtained, the previously failed requests are retried with the updated credentials. Upon successful execution, the requested data is retrieved and seamlessly displayed on the webpage.
You can tweet @godofbrowser if you need to ask a question about this
git clone https://github.com/Godofbrowser/axios-refresh-multiple-request.git
npm i
// or
yarn
npm run dev
// or
yarn dev
npm run serve
// or
yarn serve