UNPKG

@adonis-agora/authkit-react

Version:

Frontend ergonomics over AuthKit for AdonisJS + Inertia + React apps: a typed useAuth() hook, role-gating hooks and gating components.

77 lines 2.06 kB
{ "name": "@adonis-agora/authkit-react", "version": "0.21.0", "description": "Frontend ergonomics over AuthKit for AdonisJS + Inertia + React apps: a typed useAuth() hook, role-gating hooks and gating components.", "license": "MIT", "author": "dudousxd", "homepage": "https://github.com/DavideCarvalho/adonis-agora-authkit/tree/main/packages/authkit-react#readme", "repository": { "type": "git", "url": "https://github.com/DavideCarvalho/adonis-agora-authkit.git", "directory": "packages/authkit-react" }, "bugs": { "url": "https://github.com/DavideCarvalho/adonis-agora-authkit/issues" }, "keywords": [ "adonisjs", "inertia", "react", "authentication", "authkit", "rbac", "authorization", "tanstack-intent" ], "publishConfig": { "access": "public" }, "type": "module", "main": "./build/index.js", "types": "./build/index.d.ts", "files": [ "build", "styles.css", "skills" ], "exports": { ".": "./build/index.js", "./types": "./build/index.js", "./styles.css": "./styles.css" }, "peerDependencies": { "@inertiajs/react": "^3.7.0", "@simplewebauthn/browser": "^13.3.0 || ^14.0.0", "@tanstack/react-query": "^5.102.8", "react": "^19.2.8", "react-dom": "^19.2.8" }, "peerDependenciesMeta": { "@simplewebauthn/browser": { "optional": true } }, "dependencies": { "@adonis-agora/authkit-core": "0.8.0" }, "devDependencies": { "@adonisjs/tsconfig": "2.0.0", "@inertiajs/react": "3.7.0", "@japa/assert": "4.2.0", "@japa/runner": "5.3.0", "@poppinss/ts-exec": "1.4.4", "@tanstack/intent": "^0.4.0", "@tanstack/react-query": "5.102.8", "@types/node": "26.5.0", "@types/react": "19.2.18", "@types/react-dom": "19.2.7", "react": "19.2.8", "react-dom": "19.2.8", "typescript": "7.0.2" }, "scripts": { "build": "tsc", "typecheck": "tsc --noEmit && tsc -p tsconfig.tests.json", "test": "node --import=@poppinss/ts-exec bin/test.ts" } }