Launching today

LumoAuth JavaScript SDK
Auth and permissions for your users and your AI agents
0 followers
Auth and permissions for your users and your AI agents
0 followers
Open-source TypeScript packages for LumoAuth. Sign users in with OAuth 2.0 and PKCE in Next.js, React, Express or any browser app. Check access three ways: roles (RBAC), Zanzibar-style relationships and attributes (ABAC). Give AI agents their own identity, ask a person to approve risky actions on their phone, grant just-in-time permissions and issue tokens for MCP servers. Eight typed packages, ESM and CommonJS, Node 18+. MIT licensed.





Free
Launch Team

Build your Framer site from Claude, Codex or CursorYour AI agent builds it. You review before it goes live.
Promoted
Hey Product Hunt 👋
We make LumoAuth, a login and access-control service for apps and AI agents. Today we're sharing its JavaScript and TypeScript SDK. It is open source under the MIT license.
Why we built it
Sign-in is only the first part of auth. After it, your app has to decide what each user may do. And now it also has to decide what an AI agent may do when it acts for that user. We wanted one set of packages that covers all three, so you don't have to join several libraries yourself.
What's in it
Sign-in for your framework. Next.js (App Router), React, Express, or any other browser app. You get OAuth 2.0 with PKCE, sessions, and ready components such as <SignIn /> and <UserButton />. In Next.js, tokens stay in an httpOnly cookie.
Three kinds of access checks. Roles (RBAC), Zanzibar-style relationships, and attributes (ABAC). Each check is one call, for example lumo.permissions.check('document.edit').
Identity for AI agents. An agent signs in with its own credentials and asks before it acts. approvals.require() sends the request to a person's phone and waits for the answer. Just-in-time permissions give an agent narrow access for one task and a short time.
MCP support. An agent can get a token that works at exactly one MCP server. An MCP server can ask LumoAuth whether a caller may run a tool.
One install per app. There are eight typed packages with ESM and CommonJS builds, for Node 18 or newer. Each framework package re-exports the layers beneath it, so you install only one.
New in v1.7
Your API can now verify requests from personal agents that follow the Personal Agent Protocol. There is a middleware for Express and a wrapper for Next.js route handlers.
Try it
Run npm install @lumoauth/nextjs, or pick the package for your stack in the README. To start a new agent app from a template, run npx create-lumo-agent. You need a LumoAuth organization. The Developer plan is free and needs no card.
The same namespaces also exist in our Python, Go and PHP SDKs. The docs are at docs.lumoauth.dev.
What we'd love feedback on
Which framework or runtime should we support next? And if you run agents in production, which check or guardrail is missing?
We'll be here all day to answer questions. Thanks for taking a look 🙏