UNPKG

axios-cookie-auth

Version:

A lightweight Axios helper for managing httpOnly cookies and automatic token refresh with retries in TypeScript.

75 lines (74 loc) 1.6 kB
{ "name": "axios-cookie-auth", "version": "1.2.7", "description": "A lightweight Axios helper for managing httpOnly cookies and automatic token refresh with retries in TypeScript.", "main": "dist/useApi.js", "types": "dist/useApi.d.ts", "scripts": { "build": "tsc", "lint": "eslint .", "test": "vitest", "format": "prettier --write .", "prepare": "echo \"Husky is managed automatically\"" }, "files": [ "dist/", "README.md", "LICENSE" ], "keywords": [ "http-client", "cookie", "token", "axios", "refresh", "cookies", "retry", "auth", "typescript", "authentication", "javascript", "httpOnly", "api" ], "author": "Jonas Szigeti", "license": "MIT", "dependencies": { "axios": "^1.7.9" }, "devDependencies": { "@eslint/js": "^9.16.0", "@vitest/ui": "^4.0.14", "eslint": "^9.16.0", "globals": "^17.0.0", "happy-dom": "^20.0.11", "husky": "^9.1.7", "prettier": "^3.7.3", "typescript": "^5.7.2", "typescript-eslint": "^8.18.0", "vitest": "^4.0.14" }, "repository": { "type": "git", "url": "git+https://github.com/Jszigeti/axios-cookie-auth.git" }, "bugs": { "url": "https://github.com/Jszigeti/axios-cookie-auth/issues" }, "homepage": "https://github.com/Jszigeti/axios-cookie-auth#readme", "lint-staged": { "*.ts": [ "eslint --fix", "prettier --write" ], "*.json": [ "prettier --write" ], "*.md": [ "prettier --write" ] }, "engines": { "node": ">=18.0.0" } }