{"library":"axios-jwt","type":"library","category":null,"description":"Axios interceptor library for automatic JWT token storage, transmission, and refresh. Current stable version 4.0.3 (released Oct 2023), actively maintained. Supports both web (localStorage/sessionStorage) and React Native (AsyncStorage). Key differentiator: parses JWT expiration to proactively refresh before every request, preventing 401 errors. Requires explicit token refresh function provided by user, supports rotating refresh tokens. ESM/CJS compatible, ships TypeScript types. Peer dependencies: @react-native-async-storage/async-storage (React Native only) and axios ^1.4.0.","language":"javascript","status":"active","version":"4.0.3","tags":["javascript","axios","token","jwt","refresh","authentication","authorization","header","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install axios-jwt","imports":["import { applyAuthTokenInterceptor } from 'axios-jwt'","import { setAuthTokens } from 'axios-jwt'","import { getBrowserLocalStorage } from 'axios-jwt'"]},{"cmd":"yarn add axios-jwt","imports":[]},{"cmd":"pnpm add axios-jwt","imports":[]}],"homepage":"https://github.com/jetbridge/axios-jwt","github":"https://github.com/jetbridge/axios-jwt","docs":null,"changelog":null,"pypi":null,"npm":"axios-jwt","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}