{"_id":"axios-refresh-me","_rev":"44-50c06fd0621eeae6d360897b84aae66a","name":"axios-refresh-me","dist-tags":{"latest":"0.0.28"},"versions":{"0.0.17":{"name":"axios-refresh-me","version":"0.0.17","keywords":["refresh-token","axios","retry-request","axios-wrapper"],"author":{"name":"quannt86"},"license":"ISC","_id":"axios-refresh-me@0.0.17","maintainers":[{"name":"quangaobn","email":"ngthequan26@gmail.com"}],"homepage":"https://github.com/D4r1inG/axios-refresh-me#readme","bugs":{"url":"https://github.com/D4r1inG/axios-refresh-me/issues"},"dist":{"shasum":"673abbe443031e65569f11a90717ae6a68cc36c5","tarball":"https://registry.npmjs.org/axios-refresh-me/-/axios-refresh-me-0.0.17.tgz","fileCount":7,"integrity":"sha512-kGvHUWG1i+r0cABExbNVQJW6X9V1PKHDyqIKolDh9PUojm5F3Px2VuD5r59rNIbMs1/7ExL3eD0JJFhHgkF9+Q==","signatures":[{"sig":"MEYCIQDW5KEH9Rjvs3BSGwstRTZ3pzUDGSXsZUUaOyBFo99jHQIhAMr6UUrB9BvxRauL9VzEUQ6kWaN6utcQWuQEQRybmWgI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6751},"main":"dist/index.mjs","types":"dist/index.d.ts","gitHead":"a487ec562c76dc5390f27de0f7e94f8395a570e0","scripts":{"dev":"tsup --watch","build":"tsup --dts src/index.ts","lint:fix":"eslint --fix --max-warnings=0 --report-unused-disable-directives --ignore-path .gitignore 'src/**/*.{ts,tsx}'"},"_npmUser":{"name":"quangaobn","email":"ngthequan26@gmail.com"},"repository":{"url":"git+ssh://git@github.com/D4r1inG/axios-refresh-me.git","type":"git"},"_npmVersion":"10.2.4","description":"Axios wrapper for refresh token and retry request","directories":{},"_nodeVersion":"20.11.0","dependencies":{"next":"^14.2.11","axios":"^1.7.7","react":"^18.3.1","react-dom":"^18.3.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.7.0","eslint":"^8.42.0","prettier":"^2.8.8","dotenv-cli":"^7.2.1","typescript":"^5.1.3","@types/node":"^18.16.16","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.8","@typescript-eslint/eslint-plugin":"^5.59.8"},"_npmOperationalInternal":{"tmp":"tmp/axios-refresh-me_0.0.17_1728012320550_0.4565703767123308","host":"s3://npm-registry-packages"}},"0.0.18":{"name":"axios-refresh-me","version":"0.0.18","keywords":["refresh-token","axios","retry-request","axios-wrapper"],"author":{"name":"quannt86"},"license":"ISC","_id":"axios-refresh-me@0.0.18","maintainers":[{"name":"quangaobn","email":"ngthequan26@gmail.com"}],"homepage":"https://github.com/D4r1inG/axios-refresh-me#readme","bugs":{"url":"https://github.com/D4r1inG/axios-refresh-me/issues"},"dist":{"shasum":"dd79da7c73cb485b951c3df95ceb256e60fc307f","tarball":"https://registry.npmjs.org/axios-refresh-me/-/axios-refresh-me-0.0.18.tgz","fileCount":7,"integrity":"sha512-pj2btWUdSMYZZB0uQbLvuUE0sTM80jV2vS3DXZ8DJjBR12+Ci3sMzfXkUb2eDsOb3HlVoi6valH7v9mn8fJaYw==","signatures":[{"sig":"MEUCIFJjLVx8egoXm1/bHGBVsTulScQrUL6hInCgwL+vkBeEAiEAjdMqpqlQHgmPHCleQHO7gXJdcb7BKd15DIenqMTtQtI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6675},"main":"dist/index.mjs","types":"dist/index.d.ts","gitHead":"39175f5b63bb2595f51f388ff165062405a976e5","scripts":{"dev":"tsup --watch","build":"tsup --dts src/index.ts","lint:fix":"eslint --fix --max-warnings=0 --report-unused-disable-directives --ignore-path .gitignore 'src/**/*.{ts,tsx}'"},"_npmUser":{"name":"quangaobn","email":"ngthequan26@gmail.com"},"repository":{"url":"git+ssh://git@github.com/D4r1inG/axios-refresh-me.git","type":"git"},"_npmVersion":"10.2.4","description":"Axios wrapper for refresh token and retry request","directories":{},"_nodeVersion":"20.11.0","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.7.0","eslint":"^8.42.0","prettier":"^2.8.8","dotenv-cli":"^7.2.1","typescript":"^5.1.3","@types/node":"^18.16.16","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.8","@typescript-eslint/eslint-plugin":"^5.59.8"},"_npmOperationalInternal":{"tmp":"tmp/axios-refresh-me_0.0.18_1728013241944_0.2960320326026016","host":"s3://npm-registry-packages"}},"0.0.19":{"name":"axios-refresh-me","version":"0.0.19","keywords":["refresh-token","axios","retry-request","axios-wrapper"],"author":{"name":"quannt86"},"license":"ISC","_id":"axios-refresh-me@0.0.19","maintainers":[{"name":"quangaobn","email":"ngthequan26@gmail.com"}],"homepage":"https://github.com/D4r1inG/axios-refresh-me#readme","bugs":{"url":"https://github.com/D4r1inG/axios-refresh-me/issues"},"dist":{"shasum":"1fe5c22d91b66ac5a976f122e10b67d9ce2ff8d7","tarball":"https://registry.npmjs.org/axios-refresh-me/-/axios-refresh-me-0.0.19.tgz","fileCount":7,"integrity":"sha512-7N3G6NFJdDn7hoB+bKzpCjvzoXDiAqOAjbR0ZZ5rTflQFhSFoIFktgPMeu//DoYTI7GCT2PHaAcBZyShR6CUJw==","signatures":[{"sig":"MEYCIQCIPBDtNB3QGzNTbQZ/uA498AV9GncNe/oaW29LwamiyQIhAKUvLOzoD2GTIP/vawruY0ysDwF4uquxEYZy+YOz2b1c","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6675},"main":"dist/index.mjs","types":"dist/index.d.ts","gitHead":"7fc3232dc362733ad0520734409efa2a0f6bb362","scripts":{"dev":"tsup --watch","build":"tsup --dts src/index.ts","lint:fix":"eslint --fix --max-warnings=0 --report-unused-disable-directives --ignore-path .gitignore 'src/**/*.{ts,tsx}'"},"_npmUser":{"name":"quangaobn","email":"ngthequan26@gmail.com"},"repository":{"url":"git+ssh://git@github.com/D4r1inG/axios-refresh-me.git","type":"git"},"_npmVersion":"10.2.4","description":"Axios wrapper for refresh token and retry request","directories":{},"_nodeVersion":"20.11.0","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.7.0","eslint":"^8.42.0","prettier":"^2.8.8","dotenv-cli":"^7.2.1","typescript":"^5.1.3","@types/node":"^18.16.16","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.8","@typescript-eslint/eslint-plugin":"^5.59.8"},"_npmOperationalInternal":{"tmp":"tmp/axios-refresh-me_0.0.19_1728293572406_0.8775401578601456","host":"s3://npm-registry-packages"}},"0.0.20":{"name":"axios-refresh-me","version":"0.0.20","keywords":["refresh-token","axios","retry-request","axios-wrapper"],"author":{"name":"quannt86"},"license":"ISC","_id":"axios-refresh-me@0.0.20","maintainers":[{"name":"quangaobn","email":"ngthequan26@gmail.com"}],"homepage":"https://github.com/D4r1inG/axios-refresh-me#readme","bugs":{"url":"https://github.com/D4r1inG/axios-refresh-me/issues"},"dist":{"shasum":"54345ac902eba285caaded901d4ed832716ed901","tarball":"https://registry.npmjs.org/axios-refresh-me/-/axios-refresh-me-0.0.20.tgz","fileCount":7,"integrity":"sha512-WhkU3hslkovP/tCQliPz8dazTgE35Yep3BoUh0Or+r5cNwIl+Zc5U8R4rBLkHlN+NTaVcsbPE89IVJXlJI/6Ow==","signatures":[{"sig":"MEUCIQDmO1r1s2urdpbiJBMPIWT5GzEcvQm5GIqq9RQSlapgOwIgZdDT6yG2o7HfxvEj0FolUtUJCPIbyy5OL62+pbTXqLs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6980},"main":"dist/index.mjs","types":"dist/index.d.ts","gitHead":"d58f8cb2177d98f8ef038fc6de72fc0658f3883a","scripts":{"dev":"tsup --watch","build":"tsup --dts src/index.ts","lint:fix":"eslint --fix --max-warnings=0 --report-unused-disable-directives --ignore-path .gitignore 'src/**/*.{ts,tsx}'"},"_npmUser":{"name":"quangaobn","email":"ngthequan26@gmail.com"},"repository":{"url":"git+ssh://git@github.com/D4r1inG/axios-refresh-me.git","type":"git"},"_npmVersion":"10.2.4","description":"Axios wrapper for refresh token and retry request","directories":{},"_nodeVersion":"20.11.0","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.7.0","eslint":"^8.42.0","prettier":"^2.8.8","dotenv-cli":"^7.2.1","typescript":"^5.1.3","@types/node":"^18.16.16","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.8","@typescript-eslint/eslint-plugin":"^5.59.8"},"_npmOperationalInternal":{"tmp":"tmp/axios-refresh-me_0.0.20_1728293759131_0.8228014413522613","host":"s3://npm-registry-packages"}},"0.0.21":{"name":"axios-refresh-me","version":"0.0.21","keywords":["refresh-token","axios","retry-request","axios-wrapper"],"author":{"name":"quannt86"},"license":"ISC","_id":"axios-refresh-me@0.0.21","maintainers":[{"name":"quangaobn","email":"ngthequan26@gmail.com"}],"homepage":"https://github.com/D4r1inG/axios-refresh-me#readme","bugs":{"url":"https://github.com/D4r1inG/axios-refresh-me/issues"},"dist":{"shasum":"1a5f24f81c17294237dd612b34346bffaff1253f","tarball":"https://registry.npmjs.org/axios-refresh-me/-/axios-refresh-me-0.0.21.tgz","fileCount":7,"integrity":"sha512-8jAaGqrl6GctMK7uLpt+1qQIUeUlf6XcdlTWFSMMxQz/w4FO8dMqEfIlLRKqX5y5q0sw+k7mcLQL2xYDgCXp/w==","signatures":[{"sig":"MEYCIQCM1uN7YSGjW8W1vn2fSpu/lUuh/WWSgfxyD4cWDCPqdgIhAM24kCx971dCUWdsHcDa8i+ene2KPk8HYT7gKaF2NNut","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8313},"main":"dist/index.mjs","types":"dist/index.d.ts","gitHead":"c948d9abc0ef3d18685b6840cea08e04a66d9c99","scripts":{"dev":"tsup --watch","build":"tsup --dts src/index.ts","lint:fix":"eslint --fix --max-warnings=0 --report-unused-disable-directives --ignore-path .gitignore 'src/**/*.{ts,tsx}'"},"_npmUser":{"name":"quangaobn","email":"ngthequan26@gmail.com"},"repository":{"url":"git+ssh://git@github.com/D4r1inG/axios-refresh-me.git","type":"git"},"_npmVersion":"10.2.4","description":"Axios wrapper for refresh token and retry request","directories":{},"_nodeVersion":"20.11.0","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.7.0","eslint":"^8.42.0","prettier":"^2.8.8","dotenv-cli":"^7.2.1","typescript":"^5.1.3","@types/node":"^18.16.16","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.8","@typescript-eslint/eslint-plugin":"^5.59.8"},"_npmOperationalInternal":{"tmp":"tmp/axios-refresh-me_0.0.21_1728895453073_0.7883345543268043","host":"s3://npm-registry-packages"}},"0.0.22":{"name":"axios-refresh-me","version":"0.0.22","keywords":["refresh-token","axios","retry-request","axios-wrapper"],"author":{"name":"quannt86"},"license":"ISC","_id":"axios-refresh-me@0.0.22","maintainers":[{"name":"quangaobn","email":"ngthequan26@gmail.com"}],"homepage":"https://github.com/D4r1inG/axios-refresh-me#readme","bugs":{"url":"https://github.com/D4r1inG/axios-refresh-me/issues"},"dist":{"shasum":"40e075faee85651631b46896fc77579f141c47b5","tarball":"https://registry.npmjs.org/axios-refresh-me/-/axios-refresh-me-0.0.22.tgz","fileCount":7,"integrity":"sha512-99M3HkTWxx6oJPdHirA9PAaX3whwse+H7k22jxyDXAhC/ybk4pfyTGJW6f+hpBupdA8jb0mVBqQO87pnNAXEJQ==","signatures":[{"sig":"MEUCIGKKJOolPUdwLgdZjQnl0h020t5iV2sBySmcLvDnKPPhAiEAw30qoNbTareD+aOs3YzTTsMW37ZQRv19G6RErAwTG0s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8332},"main":"dist/index.mjs","types":"dist/index.d.ts","gitHead":"75d55e7dc63e809085fd679730f016f43d693bfb","scripts":{"dev":"tsup --watch","build":"tsup --dts src/index.ts","lint:fix":"eslint --fix --max-warnings=0 --report-unused-disable-directives --ignore-path .gitignore 'src/**/*.{ts,tsx}'"},"_npmUser":{"name":"quangaobn","email":"ngthequan26@gmail.com"},"repository":{"url":"git+ssh://git@github.com/D4r1inG/axios-refresh-me.git","type":"git"},"_npmVersion":"10.2.4","description":"Axios wrapper for refresh token and retry request","directories":{},"_nodeVersion":"20.11.0","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.7.0","eslint":"^8.42.0","prettier":"^2.8.8","dotenv-cli":"^7.2.1","typescript":"^5.1.3","@types/node":"^18.16.16","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.8","@typescript-eslint/eslint-plugin":"^5.59.8"},"_npmOperationalInternal":{"tmp":"tmp/axios-refresh-me_0.0.22_1728898171603_0.25229332430048923","host":"s3://npm-registry-packages"}},"0.0.23":{"name":"axios-refresh-me","version":"0.0.23","keywords":["refresh-token","axios","retry-request","axios-wrapper"],"author":{"name":"quannt86"},"license":"ISC","_id":"axios-refresh-me@0.0.23","maintainers":[{"name":"quangaobn","email":"ngthequan26@gmail.com"}],"homepage":"https://github.com/D4r1inG/axios-refresh-me#readme","bugs":{"url":"https://github.com/D4r1inG/axios-refresh-me/issues"},"dist":{"shasum":"aa518b8d20a0e9a5d74153e5cd35c25886974698","tarball":"https://registry.npmjs.org/axios-refresh-me/-/axios-refresh-me-0.0.23.tgz","fileCount":7,"integrity":"sha512-JOas9i/a+LhBMLKgmwy5qnhLmfp9vKmrvpc607QNzPk7AeyNGEMbbTi2UJozntoQ4k/pcKQWuQ56rNeGYd+XXA==","signatures":[{"sig":"MEQCIE24n/Ybg19N6aVjgYV74sa8JmDzPy32dS2A1ijFxcGrAiB4MnN4PwRLnEQZORkxBImfzZ9EFmNJjLXdXOn449U6OA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8585},"main":"dist/index.mjs","types":"dist/index.d.ts","gitHead":"f5ca960ce33c3a82c8a383f7da685bd7a564f57c","scripts":{"dev":"tsup --watch","test":"jest","build":"tsup --dts src/index.ts","lint:fix":"eslint --fix --max-warnings=0 --report-unused-disable-directives --ignore-path .gitignore 'src/**/*.{ts,tsx}'","test:watch":"jest --watch"},"_npmUser":{"name":"quangaobn","email":"ngthequan26@gmail.com"},"repository":{"url":"git+ssh://git@github.com/D4r1inG/axios-refresh-me.git","type":"git"},"_npmVersion":"10.9.0","description":"Axios wrapper for refresh token and retry request","directories":{},"_nodeVersion":"22.11.0","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tsup":"^6.7.0","eslint":"^8.42.0","ts-jest":"^29.2.5","prettier":"^2.8.8","dotenv-cli":"^7.2.1","typescript":"^5.1.3","@types/jest":"^29.5.13","@types/node":"^18.16.16","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.8","@typescript-eslint/eslint-plugin":"^5.59.8"},"_npmOperationalInternal":{"tmp":"tmp/axios-refresh-me_0.0.23_1730368808986_0.45556074245877287","host":"s3://npm-registry-packages"}},"0.0.24":{"name":"axios-refresh-me","version":"0.0.24","keywords":["refresh-token","axios","retry-request","axios-wrapper"],"author":{"name":"quannt86"},"license":"ISC","_id":"axios-refresh-me@0.0.24","maintainers":[{"name":"quangaobn","email":"ngthequan26@gmail.com"}],"homepage":"https://github.com/D4r1inG/axios-refresh-me#readme","bugs":{"url":"https://github.com/D4r1inG/axios-refresh-me/issues"},"dist":{"shasum":"b0309af3b3a6909302457d2170f3e431ab90c76f","tarball":"https://registry.npmjs.org/axios-refresh-me/-/axios-refresh-me-0.0.24.tgz","fileCount":8,"integrity":"sha512-ywGDdrOXWsf1GtMYuTHJ6Jkzvx90s09qVsNAXjcIa0+TaoIRA0OWeEgoOxa2PKyCGMuvHFrTBwH3idMoCKKazA==","signatures":[{"sig":"MEYCIQCF3WKYWOdfWQ4WN0uXXwDqKodWj+EcxO9Kc6/tNd/75gIhALt1wQnBXSfwYnnOBZCuw9iHmlsKJDnivZ+UkuQqMWmF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10141},"main":"dist/index.mjs","types":"dist/index.d.ts","gitHead":"f7c00fbc77930177168a009647a6810b062bcc4f","scripts":{"dev":"tsup --watch","test":"jest","build":"tsup --dts src/index.ts","lint:fix":"eslint --fix --max-warnings=0 --report-unused-disable-directives --ignore-path .gitignore 'src/**/*.{ts,tsx}'","test:watch":"jest --watch"},"_npmUser":{"name":"quangaobn","email":"ngthequan26@gmail.com"},"repository":{"url":"git+ssh://git@github.com/D4r1inG/axios-refresh-me.git","type":"git"},"_npmVersion":"10.9.0","description":"Axios wrapper for refresh token and retry request","directories":{},"_nodeVersion":"22.11.0","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tsup":"^6.7.0","eslint":"^8.42.0","ts-jest":"^29.2.5","prettier":"^2.8.8","dotenv-cli":"^7.2.1","typescript":"^5.1.3","@types/jest":"^29.5.13","@types/node":"^18.16.16","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.8","@typescript-eslint/eslint-plugin":"^5.59.8"},"_npmOperationalInternal":{"tmp":"tmp/axios-refresh-me_0.0.24_1730431762107_0.6596027487425284","host":"s3://npm-registry-packages"}},"0.0.25":{"name":"axios-refresh-me","version":"0.0.25","keywords":["refresh-token","axios","retry-request","axios-wrapper"],"author":{"name":"quannt86"},"license":"ISC","_id":"axios-refresh-me@0.0.25","maintainers":[{"name":"quangaobn","email":"ngthequan26@gmail.com"}],"homepage":"https://github.com/D4r1inG/axios-refresh-me#readme","bugs":{"url":"https://github.com/D4r1inG/axios-refresh-me/issues"},"dist":{"shasum":"e844501ae7dbe7591d810df1947a696cb3f04c5a","tarball":"https://registry.npmjs.org/axios-refresh-me/-/axios-refresh-me-0.0.25.tgz","fileCount":9,"integrity":"sha512-Cl2NsclSpxpos2f54ARR23iZuqd1R/fFrZm90lwK3pjomooTU6/6OkpdeLl/nxQHYydNvM0p9kbkkMPOMF6ehQ==","signatures":[{"sig":"MEUCIQCT+R1VKeRBpEQ5gkHypegPn+cSbiS6ClegLC9DaE0LDQIgXIbLYrylmPhJZP81hkhu2rpeI2qSwq0uPlOQcIkcOf0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11181},"main":"dist/index.mjs","types":"dist/index.d.ts","gitHead":"285b695368d10de6a4b4f8f073d1c51f1530fea3","scripts":{"dev":"tsup --watch","test":"jest","build":"tsup --dts src/index.ts","lint:fix":"eslint --fix --max-warnings=0 --report-unused-disable-directives --ignore-path .gitignore 'src/**/*.{ts,tsx}'","test:watch":"jest --watch"},"_npmUser":{"name":"quangaobn","email":"ngthequan26@gmail.com"},"repository":{"url":"git+ssh://git@github.com/D4r1inG/axios-refresh-me.git","type":"git"},"_npmVersion":"10.9.2","description":"Axios wrapper for refresh token and retry request","directories":{},"_nodeVersion":"22.14.0","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tsup":"^6.7.0","eslint":"^8.42.0","ts-jest":"^29.2.5","prettier":"^2.8.8","dotenv-cli":"^7.2.1","typescript":"^5.1.3","@types/jest":"^29.5.13","@types/node":"^18.16.16","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.8","@typescript-eslint/eslint-plugin":"^5.59.8"},"_npmOperationalInternal":{"tmp":"tmp/axios-refresh-me_0.0.25_1744272248410_0.5826128956179837","host":"s3://npm-registry-packages-npm-production"}},"0.0.26":{"name":"axios-refresh-me","version":"0.0.26","keywords":["refresh-token","axios","retry-request","axios-wrapper"],"author":{"name":"quannt86"},"license":"ISC","_id":"axios-refresh-me@0.0.26","maintainers":[{"name":"quangaobn","email":"ngthequan26@gmail.com"}],"homepage":"https://github.com/D4r1inG/axios-refresh-me#readme","bugs":{"url":"https://github.com/D4r1inG/axios-refresh-me/issues"},"dist":{"shasum":"d3898e117cc2b3f7f4c8d445bb6a7b50f290d430","tarball":"https://registry.npmjs.org/axios-refresh-me/-/axios-refresh-me-0.0.26.tgz","fileCount":9,"integrity":"sha512-mV5cDQInEbQzMTKNbRG8NJdWHkMF009DlngmTLCOa6tCuBHlgAHLNUpwP089S893dJhBjr8YqOAsWLkou8ZH9w==","signatures":[{"sig":"MEUCIH2EsM8MwD+uJjD43TYUA8FnJ9IiwjPzul9kCrL3U1r5AiEAgw6kLXSKqv4wv+7hVCOn38mXpXMTzC3oteldpEUR7NU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12531},"main":"dist/index.mjs","types":"dist/index.d.ts","gitHead":"7007ef19bd04a28ee74ddf7614631b91587e3455","scripts":{"dev":"tsup --watch","test":"jest","build":"tsup --dts src/index.ts","lint:fix":"eslint --fix --max-warnings=0 --report-unused-disable-directives --ignore-path .gitignore 'src/**/*.{ts,tsx}'","test:watch":"jest --watch"},"_npmUser":{"name":"quangaobn","email":"ngthequan26@gmail.com"},"repository":{"url":"git+ssh://git@github.com/D4r1inG/axios-refresh-me.git","type":"git"},"_npmVersion":"10.9.2","description":"Axios wrapper for refresh token and retry request","directories":{},"_nodeVersion":"22.14.0","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tsup":"^6.7.0","eslint":"^8.42.0","ts-jest":"^29.2.5","prettier":"^2.8.8","dotenv-cli":"^7.2.1","typescript":"^5.1.3","@types/jest":"^29.5.13","@types/node":"^18.16.16","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.8","@typescript-eslint/eslint-plugin":"^5.59.8"},"_npmOperationalInternal":{"tmp":"tmp/axios-refresh-me_0.0.26_1744274325080_0.1711429770509627","host":"s3://npm-registry-packages-npm-production"}},"0.0.27":{"name":"axios-refresh-me","version":"0.0.27","keywords":["refresh-token","axios","retry-request","axios-wrapper"],"author":{"name":"quannt86"},"license":"ISC","_id":"axios-refresh-me@0.0.27","maintainers":[{"name":"quangaobn","email":"ngthequan26@gmail.com"}],"homepage":"https://github.com/D4r1inG/axios-refresh-me#readme","bugs":{"url":"https://github.com/D4r1inG/axios-refresh-me/issues"},"dist":{"shasum":"0ade511662de4548dc1a6ca307bba9b556efe88b","tarball":"https://registry.npmjs.org/axios-refresh-me/-/axios-refresh-me-0.0.27.tgz","fileCount":9,"integrity":"sha512-7rsv9dwHgfWNRwciIrCu5ok21afXBxRmU+VszilbHgBoG4w69vjv53jwmdBj3iFFoNptOBpvvtqGy7xYjiNypA==","signatures":[{"sig":"MEQCIArI4rgST7VizbBUslG/TBzUCcZTcniJrWu1BxXYzYcUAiAHJ0M+Mwnb+oGJ9YrZS0VjyXS1Wk93pEdcHn0yzacBmg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12542},"main":"dist/index.mjs","types":"dist/index.d.ts","gitHead":"f7375830d39a332032dfebe1e126b3c47d2e59d4","scripts":{"dev":"tsup --watch","test":"jest","build":"tsup --dts src/index.ts","lint:fix":"eslint --fix --max-warnings=0 --report-unused-disable-directives --ignore-path .gitignore 'src/**/*.{ts,tsx}'","test:watch":"jest --watch"},"_npmUser":{"name":"quangaobn","email":"ngthequan26@gmail.com"},"repository":{"url":"git+ssh://git@github.com/D4r1inG/axios-refresh-me.git","type":"git"},"_npmVersion":"10.9.2","description":"Axios wrapper for refresh token and retry request","directories":{},"_nodeVersion":"22.14.0","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tsup":"^6.7.0","eslint":"^8.42.0","ts-jest":"^29.2.5","prettier":"^2.8.8","dotenv-cli":"^7.2.1","typescript":"^5.1.3","@types/jest":"^29.5.13","@types/node":"^18.16.16","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.8","@typescript-eslint/eslint-plugin":"^5.59.8"},"_npmOperationalInternal":{"tmp":"tmp/axios-refresh-me_0.0.27_1744274656611_0.9013498746067077","host":"s3://npm-registry-packages-npm-production"}},"0.0.28":{"name":"axios-refresh-me","version":"0.0.28","description":"Axios wrapper for refresh token and retry request","main":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"tsup --dts src/index.ts","dev":"tsup --watch","lint:fix":"eslint --fix --max-warnings=0 --report-unused-disable-directives --ignore-path .gitignore 'src/**/*.{ts,tsx}'","test":"jest","test:watch":"jest --watch"},"repository":{"type":"git","url":"git+ssh://git@github.com/D4r1inG/axios-refresh-me.git"},"keywords":["refresh-token","axios","retry-request","axios-wrapper"],"author":{"name":"quannt86"},"license":"ISC","dependencies":{"axios":"^1.7.7"},"devDependencies":{"@types/jest":"^29.5.13","@types/node":"^18.16.16","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","dotenv-cli":"^7.2.1","eslint":"^8.42.0","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","jest":"^29.7.0","prettier":"^2.8.8","ts-jest":"^29.2.5","tsup":"^6.7.0","typescript":"^5.1.3"},"_id":"axios-refresh-me@0.0.28","gitHead":"e10d83860287e2170174d0f583cda80126293307","bugs":{"url":"https://github.com/D4r1inG/axios-refresh-me/issues"},"homepage":"https://github.com/D4r1inG/axios-refresh-me#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-CVsDu46meMZTjpyA7/iw9OjvTpNtcW+Nr9JO9IYg4WE5waKuqk6OHbJ8GhD0BL1UIyKpuSq74SlHvHhp7Y8hbA==","shasum":"b70de507fc4e5587cc31f84d368f019634a138cb","tarball":"https://registry.npmjs.org/axios-refresh-me/-/axios-refresh-me-0.0.28.tgz","fileCount":9,"unpackedSize":12510,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDiRIoREfgCguikmWKKvnn2QX6VCYJo1Pg16lOFmEGfZwIhAOx5jeVWDIUeYcp3eukubwta4sZvvCnCLfd0rXYIgpZ4"}]},"_npmUser":{"name":"quangaobn","email":"ngthequan26@gmail.com"},"directories":{},"maintainers":[{"name":"quangaobn","email":"ngthequan26@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/axios-refresh-me_0.0.28_1744278363610_0.7229779605051985"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-03T03:11:44.025Z","modified":"2025-04-10T09:46:03.966Z","0.0.1":"2024-10-03T03:11:44.236Z","0.0.2":"2024-10-03T03:13:55.231Z","0.0.3":"2024-10-03T07:30:25.138Z","0.0.4":"2024-10-03T07:45:15.445Z","0.0.5":"2024-10-03T08:05:43.161Z","0.0.6":"2024-10-03T08:12:11.498Z","0.0.7":"2024-10-03T08:38:30.518Z","0.0.8":"2024-10-03T08:54:19.332Z","0.0.9":"2024-10-03T08:59:23.010Z","0.0.10":"2024-10-03T09:04:58.327Z","0.0.11":"2024-10-03T09:43:48.691Z","0.0.12":"2024-10-03T10:02:38.640Z","0.0.13":"2024-10-03T10:04:40.099Z","0.0.14":"2024-10-03T10:13:54.165Z","0.0.15":"2024-10-03T10:44:37.533Z","0.0.16":"2024-10-04T03:24:46.490Z","0.0.17":"2024-10-04T03:25:20.753Z","0.0.18":"2024-10-04T03:40:42.117Z","0.0.19":"2024-10-07T09:32:52.584Z","0.0.20":"2024-10-07T09:35:59.271Z","0.0.21":"2024-10-14T08:44:13.270Z","0.0.22":"2024-10-14T09:29:31.786Z","0.0.23":"2024-10-31T10:00:09.225Z","0.0.24":"2024-11-01T03:29:22.270Z","0.0.25":"2025-04-10T08:04:08.603Z","0.0.26":"2025-04-10T08:38:45.272Z","0.0.27":"2025-04-10T08:44:16.783Z","0.0.28":"2025-04-10T09:46:03.788Z"},"bugs":{"url":"https://github.com/D4r1inG/axios-refresh-me/issues"},"author":{"name":"quannt86"},"license":"ISC","homepage":"https://github.com/D4r1inG/axios-refresh-me#readme","keywords":["refresh-token","axios","retry-request","axios-wrapper"],"repository":{"type":"git","url":"git+ssh://git@github.com/D4r1inG/axios-refresh-me.git"},"description":"Axios wrapper for refresh token and retry request","maintainers":[{"name":"quangaobn","email":"ngthequan26@gmail.com"}],"readme":"# Axios Refresh Me\n\n## Introduction\n\n**Axios Refresh Me** is an Axios wrapper designed to handle refresh tokens and retry requests seamlessly. It simplifies the process of managing token expiration and retrying failed requests, ensuring a smoother user experience.\n\n## Installation\n\nTo install the package, use npm or yarn:\n\n```sh\nnpm install axios-refresh-me\n```\n\n## Usage\n\n**Axios Refresh Me** uses a request observer to monitor requests and trigger the refresh handler when necessary. If the request fails due to a specified status code, the request observer will cancel all pending requests and refresh the token. After successfully refreshing the token, the request observer will retry the failed requests and the canceled requests automatically.\n\nSee the example below for a basic implementation of **Axios Refresh Me**.\n\n## Example\n\n```ts\nimport AxiosInstanceFactory from 'axios-refresh-me';\n\n// Function to get the current token\nfunction getToken() {\n  // Logic to get the current token\n  return 'current-token';\n}\n\n// Function to get a new token\nasync function refreshToken() {\n  // Logic to get a new token\n  const newToken = await new Promise((resolve) => {\n    setTimeout(() => {\n      resolve('new-token');\n    }, 1000);\n  });\n\n  //  Remember to update the token in your token storage\n  updateToken(newToken);\n}\n\n// Register the request observer with custom options\nAxiosInstanceFactory.use({\n  // Logic to get a new token\n  refreshHandler: refreshToken,\n  // Status codes to trigger the refresh handler, default is [401]\n  statusCodes: [401],\n  // Retry count for the requests after refreshing the token successfully, default is 1\n  retryCount: 1,\n  // The request observer uses abort signals to cancel the requests, set this option to true to combine the abort signals\n  // from the request observer and default signal from the Axios request, default is false\n  combineAbortSignals: false,\n  // Function to determine if the request should be retried, will override the statusCodes option, default is undefined\n  shouldRefresh: (error) => {\n    // Logic to determine if the request should be retried\n    return error.response?.status === 401;\n  },\n});\n\nAxiosInstanceFactory.interceptor.request.use((config) => {\n  // Logic to modify the request config before sending the request\n  config.headers['Authorization'] = `Bearer ${getToken()}`;\n  return config;\n});\n\n// Create an instance of AxiosClient\nconst instance = AxiosInstanceFactory.getInstance({\n  baseURL: 'https://api.example.com',\n  headers: {\n    'Content-Type': 'application/json',\n  },\n  // Or you can override the default options\n  interceptors: {\n    request: {\n      onFulfilled: (config) => {\n        config.headers['Authorization'] = `Bearer ${getToken()}`;\n        return config;\n      },\n      onRejected: (error) => {\n        // Handle error request\n        return Promise.reject(error);\n      },\n    },\n    response: {\n      onFulfilled: (response) => {\n        // Handle successful response\n        return response;\n      },\n      onRejected: (error) => {\n        // Handle error response\n        return Promise.reject(error);\n      },\n    },\n  },\n});\n\n// Example API call\n// Retry if request failed with 401 status code\ninstance\n  .get('/data')\n  .then((response) => {\n    console.log('Data:', response.data);\n  })\n  .catch((error) => {\n    console.error('Error:', error);\n  });\n```\n\n## License\n\nThis project is licensed under the [MIT License](./LICENSE.md).\n\n## Author\n\nD4r1inG\n","readmeFilename":"README.md"}