Sign in to continue
Clerk AuthComplete user management out of the box
Clerk handles the entire authentication and user management surface — hosted UI components, social login, MFA, organisations, and a management dashboard — so you can focus on your product.
Clerk is a complete user management platform that handles authentication, user profiles, organizations, and session management with prebuilt UI components. Drop in a <SignIn /> component and get social login, MFA, passkeys, and a management dashboard without writing auth code. Clerk integrates deeply with Next.js, Remix, Expo, and other frameworks via middleware and hooks. Its backend API, webhooks, and management dashboard give you full control over user data while Clerk handles the security-critical auth infrastructure.
Quick start
npm install @clerk/nextjs
# Add environment variables
# NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_...
# CLERK_SECRET_KEY=sk_...
# Wrap your app with ClerkProvider
# Add middleware.ts for route protectionRead the full documentation at clerk.com/docs
Drop-in auth components
Prebuilt Sign In, Sign Up, and User Profile components — fully styled, accessible, and customisable.
Social & SSO login
Google, GitHub, Apple, Microsoft, and 20+ OAuth providers configured in minutes.
MFA & passkeys
TOTP, SMS codes, and WebAuthn passkeys — modern authentication flows without building them.
Organisations & roles
Multi-tenant organisation management with custom roles and permissions built in.
Framework integrations
Next.js, Remix, Expo, and more — middleware and hooks for every popular framework.
Management dashboard
User browsing, impersonation, and audit logs in Clerk's dashboard — no custom admin needed.
Why it's hard
Vendor lock-in considerations
Clerk manages your user data in their infrastructure. While they provide export tools, migrating away requires re-implementing auth flows and migrating user records.
Pricing at scale
Clerk charges per monthly active user (MAU). For apps with many users and low revenue per user, costs can grow faster than revenue. Evaluate pricing against your business model early.
Custom UI requirements
Clerk's prebuilt components are convenient but may not match every design system. Custom flows require using Clerk's lower-level hooks and API rather than the drop-in components.
Best practices
Use Clerk middleware for route protection
Clerk's Next.js middleware protects routes at the edge — unauthenticated users are redirected before your page even loads.
Sync user data with webhooks
Use Clerk webhooks (via Svix) to sync user creation, updates, and deletion to your own database — keep your app's user table in sync.
Configure organizations for B2B
Clerk's organization feature provides multi-tenant user management, roles, and invitations — essential for B2B SaaS without building it yourself.
Frequently asked questions
Related technologies
Related services
Looking for end-to-end delivery? These services complement Clerk projects.
Want to build with Clerk?
Talk to our engineering team about your Clerk architecture. We'll respond within 24 hours.
We limit intake each month so every project gets the focus it deserves.