An axios request interceptor that simplifies token management for HTTP requests. Version 0.2.0 is the current stable release. It supports static tokens, asynchronous token providers, cache with TTL, configurable header name and formatter. Compared to alternatives like axios interceptor, it is lightweight and provides built-in caching.
npm install axios-token-interceptorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to use the default export to add an authorization header to all requests.
Use import statement instead of require().
Wrap static token in a function: () => myToken
Convert expires_in to milliseconds (e.g., expires_in * 1000).
Use import statement or set type:module in package.json.
No dependency data recorded yet.