inai-express-sdk

Official

Add secure InAI Auth to Express apps.

AuthorInAI-Team
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Integrate InAI Auth into Express applications to provide authentication, middleware protection, and RBAC with a cohesive API surface.

Core Features & Use Cases

  • Middleware: inaiAuthMiddleware for global authentication and route protection with customizable public routes.
  • API routes: createAuthRoutes() mounted at /api/auth, covering login, register, MFA, refresh, and logout.
  • Access control: requireAuth() for protected routes, getAuth() for manual checks, and support for app and platform auth modes.

Quick Start

Install the @inai-dev/express package and wire inaiAuthMiddleware and createAuthRoutes() in your Express app to enable authentication.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: inai-express-sdk
Download link: https://github.com/InAI-Team/inai-auth-skills/archive/main.zip#inai-express-sdk

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.