inai-nextjs-sdk
Installation
SKILL.md
InAI Auth SDK for Next.js
This skill guides you through integrating InAI Auth into Next.js 14+ applications using the @inai-dev/nextjs package.
Key Facts
- API URL: Always
https://apiauth.inai.dev— hardcoded in the SDK, never configurable - Required env var:
INAI_PUBLISHABLE_KEY=pk_live_... - Package:
@inai-dev/nextjs(depends on@inai-dev/reactand@inai-dev/backend) - Auth modes:
"app"(end users) and"platform"(admin/developer panels)
Installation
npm install @inai-dev/nextjs