axios-auth-refresh
axios-auth-refresh copied to clipboard
Library that helps you implement automatic refresh of authorization via axios interceptors. You can easily intercept the original request when it fails, refresh the authorization and continue with the...
Assume that you are making a request which returns a 401. `refreshAuthLogic` will be called as it should and this second request is returning again a 401. This second failure...
All dependencies were updated, and Dependabot was also integrated. It checks weekly for new dependencies for npm and GitHub Actions. All TypeScript checks and the test cases passed. Dependabot has...
Uses the GitHub Actions to check the TypeScript types on each pull request, and run the tests.
I'm using [axios-auth-refresh](https://github.com/Flyrell/axios-auth-refresh) with react-query with axios as defaultQueryFn. Everything works fine besides onRetry, it's just never firing (I do not see 1111 in console). My code: ```javascript class Api...
I am using this library to pause requests that fail with a 401 and attempt to refresh a token when these requests fail. My use also involves attaching `request` and...
Hello! MR #170 introduced a compiler target change from es5 to es2015 which now results in ES6 syntax appearing in the dist js file (const, =>, ...). We have some...
Link to section: https://github.com/Flyrell/axios-auth-refresh#pause-the-instance-while-refresh-logic-is-running  The description of the `pauseInstanceWhileRefreshing` parameter is not really clear. At first glance, it seems that this parameter is needed to indicate whether requests should...
Hi, many thanks for creating this plugin. Is there any documentation that shows how to use this with $axios in nuxt (server-side axios calls)?
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.6.0 to 4.0.2. Release notes Sourced from actions/setup-node's releases. v4.0.2 What's Changed Add support for volta.extends by @ThisIsManta in actions/setup-node#921 Add support for arm64 Windows by @dmitry-shibanov...
Hello. I have a problem with the module when I use it with nodejs. Welcome to Node.js v18.12.1. Type ".help" for more information. > import('axios-auth-refresh').then(console.log) > [Module: null prototype] {...