Install @warpy-auth-sdk/core and set up your first authentication flow in minutes.
Install @warpy-auth-sdk/core using your preferred package manager:
npm install @warpy-auth-sdk/coreyarn add @warpy-auth-sdk/corepnpm add @warpy-auth-sdk/corebun add @warpy-auth-sdk/core@warpy-auth-sdk/core requires the following peer dependencies for full functionality:
react - For React hooks and componentsnext - For Next.js integration (if using Next.js)@prisma/client - For database adapter supportnodemailer - For email magic link functionalityai - For MCP (Model Context Protocol) integration@warpy-auth-sdk/core uses subpath exports for optimal tree-shaking:
// Core authentication functions
import { authenticate, getSession, signOut } from '@warpy-auth-sdk/core';
// React hooks and components
import { useAuth, AuthProvider } from '@warpy-auth-sdk/core/hooks';
// Server-side session helpers
import { getServerSession } from '@warpy-auth-sdk/core/hooks/server';
// Next.js integration
import { authMiddleware } from '@warpy-auth-sdk/core/next';
// MCP tools for AI agents
import { createMCPTools } from '@warpy-auth-sdk/core/mcp';@warpy-auth-sdk/core is built with TypeScript and includes comprehensive type definitions. No additional type packages are required.
import type {
AuthConfig,
Session,
Provider,
Adapter,
MCPLoginPayload,
AuthenticateResult,
} from '@warpy-auth-sdk/core';@warpy-auth-sdk/core works with the following environments:
Once you've installed the package, you can proceed to the Quickstart guide to set up your first authentication flow.