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

Async onRetry #192

Closed reichhartd closed 2 years ago

reichhartd commented 2 years ago

We use TypeScript and in our case, onRetry must be asynchronous. This change fixes it. It is a non-breaking change.

Flyrell commented 2 years ago

Thank you very much @reichhartd