clerk
Installation
SKILL.md
Clerk
Clerk is a comprehensive user management and authentication service built specifically for the modern web (React, Next.js, Remix). It focuses on providing "Drop-in" UI components (<SignIn />, <UserProfile />) rather than just APIs.
When to Use
- Modern React & Next.js Authentication: Adding drop-in, beautifully designed authentication components to modern frontend stacks.
- B2B SaaS Multi-Tenancy & Organizations: Managing team invites, role assignments, seat limits, and organization switching.
- Passwordless & Passkey Auth: Enabling WebAuthn passkeys, biometric logins, and magic links out of the box.
- Edge-Ready Middleware Verification: Validating JWT session tokens at the network edge (Cloudflare Workers, Next.js Middleware).
Quick Start
// middleware.ts
import { authMiddleware } from "@clerk/nextjs";
export default authMiddleware({});