This monorepo includes the server-only @namoidhq/agent-auth package for
customer-facing connectors and bounded MCP sessions alongside the Customer
Identity SDKs.
The JavaScript/TypeScript SDKs for NamoID Hosted Auth. The SDKs use OpenID Connect Authorization Code with PKCE while keeping discovery, state, nonce, token exchange, refresh, and logout mechanics behind framework-friendly APIs.
| Package | npm | What it is |
|---|---|---|
@namoidhq/js |
@namoidhq/js |
Core SDK — configuration, discovery, PKCE authorization, code/refresh exchange, UserInfo, revocation, and logout |
@namoidhq/react |
@namoidhq/react |
React provider, sign-in component, and public-client callback validation |
@namoidhq/nextjs |
@namoidhq/nextjs |
Confidential BFF adapter — secure transaction cookies, callback validation, refresh, revocation, and RP logout |
Future framework adapters (@namoidhq/vue, @namoidhq/svelte, …) go in this same repo under packages/.
npm install @namoidhq/js
# React apps:
npm install @namoidhq/react @namoidhq/js
# Next.js apps:
npm install @namoidhq/nextjs @namoidhq/jsRequires pnpm.
pnpm install # links the workspace packages
pnpm build # builds every package (tsc), in dependency order
pnpm typecheck
pnpm test@namoidhq/react and @namoidhq/nextjs depend on @namoidhq/js via workspace:^, so changes to the core SDK are picked up locally with no republish.
packages/
js/ @namoidhq/js (core primitives)
react/ @namoidhq/react (React UI)
nextjs/ @namoidhq/nextjs (Next.js server routes)
- Website — namoid.in
- Docs — docs.namoid.in
- Contact — hello@namoid.in
- Issues — github.com/namoidhq/namoid-js/issues
MIT © PolyMindsLabs Pvt. Ltd.