Flyrell / axios-auth-refresh

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.
MIT License
1.06k stars 91 forks source link

General maintenance #217

Closed reichhartd closed 1 year ago

reichhartd commented 2 years ago

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.