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. observed · 2026-08-28
Health v2 · maintenance only
82/100
- Activity 81
- Release rhythm 74
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 0.0
- age_days: 2841
- days_rel: 173
- days_push: 117
- n_releases_24m: 5
Adoption not part of the score
1144 stars · 93 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A TypeScript library that adds automatic authorization token refresh to Axios via interceptors. When a request fails with an authorization error, it runs your refresh logic, stalls concurrent requests, and replays them with the new token transparently.
Use cases
- automatically refresh expired access tokens in axios
- retry failed 401 requests after token refresh
- queue requests while auth token is being refreshed
- handle silent session renewal in a frontend app
- attach axios interceptor for refresh token flow
When to choose
- your app uses axios and needs seamless token refresh
- you want concurrent requests to wait for a single refresh call
- you need a small, typed, MIT-licensed auth helper
When to avoid
- you don't use axios as your HTTP client
- you need full OAuth/session management rather than just refresh interception
- you use fetch or another non-axios request library
Facets
library · maturity active
auth middleware http-client web-development security apis browser cross-platform axios token-refresh interceptor typescript http nodejs
2 sources
- readme: https://github.com/Flyrell/axios-auth-refresh · fetched 2026-08-28 · ba8acd35a9bf
- registry_npm: https://registry.npmjs.org/axios-auth-refresh · fetched 2026-08-29 · e1d50fb1621b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Flyrell/axios-auth-refresh | main | 82 |
For agents
markdown · JSON · MCP: product_card(name="Flyrell/axios-auth-refresh")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem