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 original request, without user even noticing.
There are quite some changes in this pull request. I am aware that not all of them are desired. Accordingly, I am happy to adapt the desired changes or to create cherry-pick pull requests for individual changes.
I think especially the point More strict types should be reviewed, because I have changed some any types to unknown. That the user can handle this better, I export the custom type guard function isAxiosAuthRefreshError.
Migrated to Yarn
Updated several dependencies like jest
Splitted tests into multiple files for better maintenance
More strict TypeScript compiler config
Initial ESLint setup and rule set
More strict types (There is only one any remaining in the production file)
There are quite some changes in this pull request. I am aware that not all of them are desired. Accordingly, I am happy to adapt the desired changes or to create cherry-pick pull requests for individual changes.
I think especially the point
More strict types
should be reviewed, because I have changed someany
types tounknown
. That the user can handle this better, I export the custom type guard functionisAxiosAuthRefreshError
.jest
any
remaining in the production file)skipWhileRefreshing
flagwebpack
torollup