mirror of
https://github.com/hanzoai/iam-js.git
synced 2026-10-30 19:58:15 +00:00
Z (isAdmin=true, owner=hanzo, name=z) only saw personal org "z". Now admin users also see their signup org (e.g., "hanzo") since they manage it. Non-admin users still see only their personal org. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
98 lines
2.0 KiB
JSON
98 lines
2.0 KiB
JSON
{
|
|
"name": "@hanzo/iam",
|
|
"version": "0.6.1",
|
|
"description": "TypeScript SDK for Hanzo IAM — OIDC auth, JWT validation, OAuth2 PKCE, user/org/project APIs",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
},
|
|
"./auth": {
|
|
"types": "./dist/auth.d.ts",
|
|
"import": "./dist/auth.js"
|
|
},
|
|
"./browser": {
|
|
"types": "./dist/browser.d.ts",
|
|
"import": "./dist/browser.js"
|
|
},
|
|
"./billing": {
|
|
"types": "./dist/billing.d.ts",
|
|
"import": "./dist/billing.js"
|
|
},
|
|
"./types": {
|
|
"types": "./dist/types.d.ts",
|
|
"import": "./dist/types.js"
|
|
},
|
|
"./react": {
|
|
"types": "./dist/react.d.ts",
|
|
"import": "./dist/react.js"
|
|
},
|
|
"./nextauth": {
|
|
"types": "./dist/nextauth.d.ts",
|
|
"import": "./dist/nextauth.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"src",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsc --watch",
|
|
"clean": "rm -rf dist",
|
|
"prepare": "npm run clean && npm run build",
|
|
"prepublishOnly": "npm run clean && npm run build",
|
|
"test": "node --test --import tsx src/**/*.test.ts"
|
|
},
|
|
"dependencies": {
|
|
"jose": "^6.1.0"
|
|
},
|
|
"peerDependencies": {
|
|
"react": ">=17"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"react": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.19.11",
|
|
"@types/react": "^19.0.0",
|
|
"typescript": "^5.5.0"
|
|
},
|
|
"keywords": [
|
|
"hanzo",
|
|
"iam",
|
|
"casdoor",
|
|
"oidc",
|
|
"oauth2",
|
|
"pkce",
|
|
"auth",
|
|
"jwt",
|
|
"identity",
|
|
"access-management",
|
|
"sso"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/hanzo-js/iam"
|
|
},
|
|
"homepage": "https://docs.hanzo.ai/services/iam/sdk",
|
|
"bugs": {
|
|
"url": "https://github.com/hanzo-js/iam/issues"
|
|
},
|
|
"author": "Hanzo AI <[email protected]>",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
}
|
|
}
|