inai-react-sdk

Official

Client-side React auth with hooks and UI.

AuthorInAI-Team
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provide client-side authentication UI, hooks, and session management for React apps using InAI Auth, enabling developers to add robust, interactive login flows without duplicating server logic.

Core Features & Use Cases

  • Provider: wrap your app with InAIAuthProvider to share and hydrate auth state across the component tree.
  • Hooks and Components: useAuth, useUser, useSignIn, useSignUp, useSession, and pre-built components like SignIn, UserButton, SignedIn, SignedOut, Protect, and PermissionGate for rapid UI assembly.
  • Real-world Scenarios: add client-side authentication to a React SPA or Astro islands with React islands, including RBAC and MFA support.

Quick Start

Install the @inai-dev/react package and wrap your app with InAIAuthProvider to enable client-side authentication in your React application.

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-react-sdk
Download link: https://github.com/InAI-Team/inai-auth-skills/archive/main.zip#inai-react-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.