UNPKG

@privy-io/react-auth

Version:

React client for the Privy Auth API

279 lines (278 loc) • 7.91 kB
{ "name": "@privy-io/react-auth", "version": "3.4.1", "description": "React client for the Privy Auth API", "keywords": [ "authentication", "authorization", "identity", "privacy", "privy", "user data", "web3" ], "homepage": "https://docs.privy.io", "bugs": { "url": "https://privy.io/slack" }, "license": "Apache-2.0", "author": "privy.io", "sideEffects": false, "type": "commonjs", "exports": { ".": { "require": { "types": "./dist/dts/index.d.ts", "default": "./dist/cjs/index.js" }, "import": { "types": "./dist/dts/index.d.mts", "default": "./dist/esm/index.mjs" } }, "./ui": { "require": { "types": "./dist/dts/ui.d.ts", "default": "./dist/cjs/ui.js" }, "import": { "types": "./dist/dts/ui.d.mts", "default": "./dist/esm/ui.mjs" } }, "./solana": { "require": { "types": "./dist/dts/solana.d.ts", "default": "./dist/cjs/solana.js" }, "import": { "types": "./dist/dts/solana.d.mts", "default": "./dist/esm/solana.mjs" } }, "./extended-chains": { "require": { "types": "./dist/dts/extended-chains.d.ts", "default": "./dist/cjs/extended-chains.js" }, "import": { "types": "./dist/dts/extended-chains.d.mts", "default": "./dist/esm/extended-chains.mjs" } }, "./smart-wallets": { "require": { "types": "./dist/dts/smart-wallets.d.ts", "default": "./dist/cjs/smart-wallets.js" }, "import": { "types": "./dist/dts/smart-wallets.d.mts", "default": "./dist/esm/smart-wallets.mjs" } }, "./abstract-smart-wallets": { "require": { "types": "./dist/dts/abstract-smart-wallets.d.ts", "default": "./dist/cjs/abstract-smart-wallets.js" }, "import": { "types": "./dist/dts/abstract-smart-wallets.d.mts", "default": "./dist/esm/abstract-smart-wallets.mjs" } }, "./farcaster": { "require": { "types": "./dist/dts/farcaster.d.ts", "default": "./dist/cjs/farcaster.js" }, "import": { "types": "./dist/dts/farcaster.d.mts", "default": "./dist/esm/farcaster.mjs" } } }, "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", "types": "./dist/dts/index.d.ts", "typesVersions": { "*": { "ui": [ "dist/dts/ui.d.ts" ], "solana": [ "dist/dts/solana.d.ts" ], "extended-chains": [ "dist/dts/extended-chains.d.ts" ], "smart-wallets": [ "dist/dts/smart-wallets.d.ts" ], "abstract-smart-wallets": [ "dist/dts/abstract-smart-wallets.d.ts" ], "farcaster": [ "dist/dts/farcaster.d.ts" ] } }, "typings": "./dist/dts/index.d.ts", "directories": { "test": "test" }, "files": [ "dist/**/*", "LICENSE", "README.md" ], "scripts": { "build:types": "rollup --config rollup.types.mjs", "build:code": "rollup --config rollup.build.mjs", "check-types": "tsc --noEmit", "clean": "rm -rf dist .turbo .swc", "clean:reset": "rm -rf dist .turbo .swc node_modules", "dev:code": "rollup --config rollup.dev.mjs --watch", "dev:types": "rollup --config rollup.types.mjs --watch", "format": "eslint src --fix", "lint": "eslint src", "stories": "cd storybook && vite --port=5702", "test": "jest", "test-integration": "jest --testMatch \"**/test/integration/**/*.test.ts(x)?\"", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build --webpack-stats-json=false --quiet" }, "browserslist": [ "defaults", "not op_mini all" ], "dependencies": { "@base-org/account": "^1.1.0", "@coinbase/wallet-sdk": "4.3.2", "@floating-ui/react": "^0.26.22", "@headlessui/react": "^2.2.0", "@heroicons/react": "^2.1.1", "@marsidev/react-turnstile": "^1.3.1", "@privy-io/api-base": "1.7.1", "@privy-io/chains": "0.0.3", "@privy-io/ethereum": "0.0.2", "@privy-io/js-sdk-core": "0.56.3", "@privy-io/public-api": "2.51.0", "@privy-io/urls": "*", "@scure/base": "^1.2.5", "@simplewebauthn/browser": "^13.2.2", "@tanstack/react-virtual": "^3.13.10", "@wallet-standard/app": "^1.0.1", "@walletconnect/ethereum-provider": "2.21.7", "eventemitter3": "^5.0.1", "fast-password-entropy": "^1.1.1", "jose": "^4.15.5", "js-cookie": "^3.0.5", "lucide-react": "^0.383.0", "mipd": "^0.0.7", "ofetch": "^1.3.4", "pino-pretty": "^10.0.0", "qrcode": "^1.5.1", "react-device-detect": "^2.2.2", "secure-password-utilities": "^0.2.1", "styled-components": "^6.1.13", "stylis": "^4.3.4", "tinycolor2": "^1.6.0", "uuid": ">=8 <10", "viem": "^2.32.0", "zustand": "^5.0.0" }, "devDependencies": { "@abstract-foundation/agw-client": "^1.9.1", "dotenv": "^16.0.3", "@babel/core": "^7.25.2", "@babel/preset-env": "^7.25.3", "@babel/preset-react": "^7.24.7", "@babel/preset-typescript": "^7.24.7", "@jest/globals": "^29.7.0", "@privy-io/build-config": "*", "@privy-io/eslint-config-custom": "*", "@privy-io/eslint-plugin-privy-rules": "*", "@privy-io/public-api": "2.51.0", "@privy-io/testing": "*", "@rollup/plugin-commonjs": "^26.0.1", "@rollup/plugin-node-resolve": "^15.3.0", "@rollup/plugin-replace": "^6.0.1", "@rollup/plugin-swc": "^0.4.0", "@rollup/plugin-terser": "^0.4.4", "@solana-program/memo": "^0.8.0", "@solana-program/system": "^0.8.0", "@solana-program/token": "^0.6.0", "@storybook/addon-essentials": "7.6.20", "@storybook/addon-interactions": "7.6.20", "@storybook/addon-links": "7.6.20", "@storybook/addon-onboarding": "1.0.11", "@storybook/blocks": "7.6.20", "@storybook/react": "7.6.20", "@storybook/react-vite": "7.6.20", "@storybook/test": "7.6.20", "@swc/core": "^1.10.0", "@swc/plugin-styled-components": "^6.0.1", "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.4.8", "@testing-library/react": "^16.0.0", "@tsconfig/node16-strictest-esm": "^1.0.3", "@types/create-hash": "^1.2.6", "@types/fast-password-entropy": "^1.1.1", "@types/jest": "^29.1.2", "@types/js-cookie": "^3.0.3", "@types/jsonwebtoken": "^8.5.9", "@types/md5": "^2.3.2", "@types/qrcode": "^1.5.0", "@types/randombytes": "^2.0.3", "@types/react": "^18.2.15", "@types/react-dom": "^18.2.7", "@types/tinycolor2": "^1.4.3", "@types/uuid": "^9.0.2", "@vitejs/plugin-react-swc": "^3.7.0", "babel-jest": "^29.7.0", "glob": "^10.3.12", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "rollup": "4.52.4", "rollup-plugin-copy": "^3.5.0", "rollup-plugin-dts": "^6.1.1", "storybook": "7.6.20", "storybook-addon-pseudo-states": "^2.2.1", "ts-jest": "^29.2.5", "typescript": "~5.5.3", "vite": "^5.4.0" }, "peerDependencies": { "@abstract-foundation/agw-client": "^1.0.0", "@solana-program/memo": "^0.8.0", "@solana-program/system": "^0.8.0", "@solana-program/token": "^0.6.0", "@solana/kit": "^3.0.3", "permissionless": "^0.2.47", "react": "^18 || ^19", "react-dom": "^18 || ^19" }, "peerDependenciesMeta": { "@abstract-foundation/agw-client": { "optional": true }, "@solana/kit": { "optional": true }, "@solana-program/system": { "optional": true }, "@solana-program/token": { "optional": true }, "@solana-program/memo": { "optional": true }, "permissionless": { "optional": true } }, "publishConfig": { "access": "public" } }