axios-auth-refresh

JSON →
library 5.0.2 ·javascript
verified Jun 7, 2026

Axios plugin for automatic token refresh via request interceptors. Current stable version 5.0.2, actively maintained. Key differentiator: it stalls concurrent requests during token refresh and resolves them once a new token is available, preventing duplicate refresh calls. Requires axios >= 1.0.0 as a peer dependency. Ships TypeScript definitions. The library itself is lightweight (~1.2kB minified) and only intercepts 401 status codes by default, but allows custom status codes via options.