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. (by Flyrell)
axios-cache-interceptor
📬 Small and efficient cache interceptor for axios. Etag, Cache-Control, TTL, HTTP headers and more! (by arthurfiorette)
Our great sponsors
axios-auth-refresh | axios-cache-interceptor | |
---|---|---|
1 | 10 | |
1,011 | 516 | |
- | - | |
5.6 | 9.3 | |
about 1 month ago | 5 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
axios-auth-refresh
Posts with mentions or reviews of axios-auth-refresh.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-03-14.
-
Having a Problem with JWT Refresh Token Flow (using axios and axios-auth-refresh)
I'm working on an app with a JWT-based authentication flow for back-end API requests. The general flow is working fine; upon login the user gets a long-term refresh token and short-term access token. Using the axios-auth-refresh plug-in for axios, I am able to auto-refresh the access token when it has expired.
axios-cache-interceptor
Posts with mentions or reviews of axios-cache-interceptor.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-04.
-
How to implement algolia index on documentation?
Just done that to https://axios-cache-interceptor.js.org, you have to request in their oficial website if it is for a OSS project.
-
Make your apps cost efficient by caching APIs
To accomplish this, we will use the library axios-cache-interceptor to “cache API calls to reduce the number of credits we use”. For this caching option we need to see the lifetime of a cached response, a way to persist the day permanently and across different user sessions and, keep in mind, the margin to consider for cutting expenses.
- [AskJS] JavaScript Libraries
- Finally: The solution for when the issue doesn't have sufficient information.
-
[AskJS] How do people manage complex data and server interactions without classes or ORM in an SPA? Where is my Backbone for React?
You can use a good and easy to use request library, like axios (~5.6Kb) to make http requests, and a cache library, like axios-cache-interceptor (~3.84Kb, which i'm the maintainer btw), and let the cache plugin to take care of invalidating, requesting and storing it's data.
-
You should use cache over state for network requests. With Axios Cache Interceptor, this is made simple!
Documentation: https://axios-cache-interceptor.js.org
Github - Documentation - Npm - Bundlephobia
- I made an cache system for axios that supports multiple strategies, like Etag, Cache-Control, If-Modified-Since, Age and etc. It is fully customizable, with 100% Code coverage, only 4Kb minzipped and has custom typings for auto completion!
What are some alternatives?
When comparing axios-auth-refresh and axios-cache-interceptor you can also consider the following projects:
retry-axios - 🦖 A super flexible interceptor for Axios that makes it easy to retry requests.
zustand - 🐻 Bear necessities for state management in React