# IAM SDK

URL: https://docs.hanzo.ai/docs/sdks/iam

> TypeScript SDK for Hanzo IAM — authentication, organizations, billing, and React bindings.

TypeScript SDK for Hanzo IAM (Identity & Access Management). Provides OIDC auth, JWT validation, OAuth2 PKCE browser flows, org/project switching, billing, and React bindings.

```bash
npm install @hanzo/iam
```

## Entry Points

| Import Path          | Description                                                            |
| -------------------- | ---------------------------------------------------------------------- |
| `@hanzo/iam`         | Core client, JWT validation, types                                     |
| `@hanzo/iam/react`   | React provider and hooks (`IamProvider`, `useIam`, `useOrganizations`) |
| `@hanzo/iam/browser` | Browser PKCE SDK (standalone, no React)                                |
| `@hanzo/iam/billing` | Billing client (subscriptions, plans, pricing)                         |
| `@hanzo/iam/auth`    | JWT validation only                                                    |
| `@hanzo/iam/types`   | Type definitions only                                                  |

## Documentation

Full SDK documentation lives in the IAM repository:

- [IAM API reference](https://docs.hanzo.ai/docs/openapi/iam) — every operation, one page each
- [Authentication](https://docs.hanzo.ai/docs/api-keys) — JWT validation, PKCE flows, token management
- [`@hanzo/iam` on npm](https://www.npmjs.com/package/@hanzo/iam) — IamProvider, useIam, useOrganization — IamProvider, useIam, useOrganizations, useIamToken
- [Credits & billing](https://docs.hanzo.ai/docs/credits) — Subscriptions, plans, pricing, payments

## Related

- [IAM Server](https://github.com/hanzoai/iam) -- The Hanzo IAM service
- [`@hanzo/iam`](https://www.npmjs.com/package/@hanzo/iam) — the published package
