axios-token-refresh
Version:
A lightweight utility for Axios to handle token refresh logic seamlessly. Automatically retries requests after token expiration with customizable retry logic and status code handling.
76 lines (75 loc) • 2.07 kB
JSON
{
"name": "axios-token-refresh",
"version": "1.0.9",
"description": "A lightweight utility for Axios to handle token refresh logic seamlessly. Automatically retries requests after token expiration with customizable retry logic and status code handling.",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
"types": "dist/index.d.ts",
"exports": {
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js",
"types": "./dist/index.d.ts"
},
"access": "public",
"scripts": {
"dev": "bun run scripts/watch.js",
"test": "bun test --update-snapshots",
"check": "prettier --check 'src/**/*'",
"format": "prettier --write 'src/**/*'",
"release": "bun bundle && changeset publish",
"bundle": "rm -rf dist/ && bun run scripts/bundle.js && bun run bundle:declaration",
"bundle:declaration": "dts-bundle-generator --config dts-bundle-config.json"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Duc-Developer/axios-token-refresh.git"
},
"keywords": [
"axios",
"axios-refresh",
"refresh-token",
"authorization",
"interceptor",
"token-refresh",
"axios-interceptor",
"http-client",
"authentication",
"token-expiry",
"retry-requests",
"401-error",
"refresh-token-logic",
"axios-middleware",
"http-interceptor"
],
"engines": {
"bun": ">=1.2.12"
},
"peerDependencies": {
"axios": ">=0.21.1"
},
"files": [
"package.json",
"README.md",
"LICENSE",
"dist"
],
"publishConfig": {
"access": "public"
},
"author": "Duc-Developer",
"license": "MIT",
"bugs": {
"url": "https://github.com/Duc-Developer/axios-token-refresh/issues"
},
"homepage": "https://github.com/Duc-Developer/axios-token-refresh#readme",
"devDependencies": {
"@changesets/cli": "^2.27.1",
"axios": "^1.6.0",
"bun-types": "latest",
"chokidar": "^4.0.3",
"dts-bundle-generator": "^9.0.0",
"jest": "^29.7.0",
"prettier": "^3.1.0"
},
"packageManager": "bun@1.2.12"
}