UNPKG

@wristband/react-client-auth

Version:

A lightweight React SDK that pairs with your backend server auth to initialize and sync frontend sessions via secure session cookies.

110 lines (109 loc) 3.06 kB
{ "name": "@wristband/react-client-auth", "description": "A lightweight React SDK that pairs with your backend server auth to initialize and sync frontend sessions via secure session cookies.", "author": "Wristband", "homepage": "https://wristband.dev", "version": "3.0.0", "license": "MIT", "sideEffects": false, "type": "module", "source": "./src/index.ts", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", "require": "./dist/cjs/index.js", "import": "./dist/esm/index.js", "default": "./dist/esm/index.js" } }, "files": [ "dist", "LICENSE.md", "README.md", "package.json" ], "repository": { "type": "git", "url": "https://github.com/wristband-dev/react-client-auth.git" }, "bugs": { "email": "support@wristband.dev" }, "engines": { "node": ">=20.0.0", "npm": ">=9.6.0" }, "publishConfig": { "access": "public" }, "scripts": { "build": "npm run clean && rollup -c", "clean": "rimraf dist", "package": "npm run build && npm pack", "prepublishOnly": "pinst --disable", "_postinstall": "husky install", "postpublish": "pinst --enable", "test": "vitest run", "test:coverage": "vitest run --coverage", "test:watch": "vitest", "lint": "tsc --noEmit && eslint src test --ext .ts,.tsx", "lint:fix": "tsc --noEmit && eslint src test --ext .ts,.tsx --fix", "format": "prettier --write \"{src,test}/**/*.{ts,tsx}\"", "format:check": "prettier --check \"{src,test}/**/*.{ts,tsx}\"" }, "keywords": [ "react", "sdk", "multi-tenant", "multitenant", "auth", "authentication", "session", "oauth2", "oidc", "wristband", "b2b", "saas" ], "peerDependencies": { "react": ">=17.0.0", "react-dom": ">=17.0.0" }, "devDependencies": { "@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-typescript": "^12.1.2", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@types/node": "^22.19.1", "@types/react": "^19.2.7", "@types/react-dom": "^19.2.3", "@typescript-eslint/eslint-plugin": "^7.5.0", "@typescript-eslint/parser": "^7.5.0", "@vitejs/plugin-react": "^4.3.4", "@vitest/coverage-v8": "^3.1.1", "eslint": "^8.57.1", "eslint-config-prettier": "^8.10.2", "eslint-import-resolver-typescript": "^4.3.2", "eslint-plugin-import": "^2.31.0", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-vitest": "^0.5.4", "husky": "^9.1.7", "jsdom": "^26.1.0", "msw": "^2.7.4", "pinst": "^3.0.0", "prettier": "^2.8.8", "rimraf": "^5.0.0", "rollup": "^4.40.0", "rollup-plugin-dts": "^6.2.1", "tslib": "^2.8.1", "typescript": "^5.8.3", "vite": "^6.4.1", "vitest": "^3.1.1" } }