inai-astro-sdk
OfficialServer-side InAI Auth for Astro apps.
AuthorInAI-Team
Version1.0.0
Installs0
System Documentation
What problem does it solve?
The Astro integration guides you to add InAI Auth to Astro 6+ SSR projects, enabling server-side authentication, route protection, and seamless session management without client-side providers.
Core Features & Use Cases
- Integration plugin in astro.config.mjs to enable SSR authentication.
- Middleware inaiAstroMiddleware() to guard protected routes, manage redirects, and auto-refresh tokens.
- API Routes via createAuthRoutes() to handle login, registration, MFA, refresh, and logout.
- Server helpers (auth(), currentUser()) accessible in Astro pages and endpoints for simple access checks.
- Suitable for building admin panels, customer dashboards, or any SSR Astro site requiring authenticated access.
Quick Start
Install the Astro integration, configure INAI_PUBLISHABLE_KEY, and enable the middleware and API routes to protect your routes.
Dependency Matrix
Required Modules
None requiredComponents
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-astro-sdk Download link: https://github.com/InAI-Team/inai-auth-skills/archive/main.zip#inai-astro-sdk Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.