Documentation
Everything you need to build secure authentication with @warpy-auth-sdk/core
Getting Started
Install @warpy-auth-sdk/core and set up your first authentication flow in minutes.
Read more →Providers
Configure OAuth providers, email magic links, and custom authentication methods.
Read more →API Reference
Complete API documentation for all methods, types, and configuration options.
Read more →MCP Integration
Enable AI agents to authenticate on behalf of users with the Model Context Protocol.
Read more →Quick Start
Install and configure @warpy-auth-sdk/core in your project
1. Install the package
npm install @warpy-auth-sdk/core2. Set up environment variables
AUTH_SECRET=your-secret-key
GOOGLE_CLIENT_ID=your-client-id
GOOGLE_CLIENT_SECRET=your-client-secret
GOOGLE_REDIRECT_URI=http://localhost:3000/api/auth/callback/google3. Create your auth handler
import { authMiddleware } from "@warpy-auth-sdk/core/next";
import { google } from "@warpy-auth-sdk/core";
export const handler = authMiddleware({
secret: process.env.AUTH_SECRET!,
provider: google({
clientId: process.env.GOOGLE_CLIENT_ID!,
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
redirectUri: process.env.GOOGLE_REDIRECT_URI!,
}),
});