Next.jsand

Authentication and user management for Next.js

Clerk is the easiest way to add authentication and user management to your Next.js application.

Integrated with Vercel

Use our Vercel integration to easily create and deploy a Next.js application with Clerk user management.

Deploy Clerk on Vercel

Customizable frontends

Clerk's prebuilt frontends were designed to work seamlessly with Next.js catch-all routes so you can integrate in minutes. Their theme can easily be adjusted to match your branding.

See documentation →

Sign up + sign in

Beautiful flows optimized for conversion and customized to your business needs.

To use with Next.js, mount on:
pages/sign-in/[[...index]].js
pages/sign-up/[[...index]].js

User profile

A complete dashboard to empower your users to take control of their account security.

To use with Next.js, mount on:
pages/user/[[...index]].js

User button

A familiar button for showing the current user, switching users, and accessing account settings.

To use with Next.js, mount within your header or layout component.

Simple API route protection

import
 requireSession
} from "@clerk/clerk-sdk-node";

const handler = (req, res) => {
 res.statusCode = 200;
 res.json({
   id: req.session.userId
 });
}

export default
 requireSession(handler);

Clerk provides a fast and easy way to require authentication in your Next.js API routes, and to determine which user is making the request.

See documentation →

Demo: Clerk with Next.js

Watch as we add Clerk to a new Next.js application in just 6.5 minutes.

Uncompromising security

From brute force and password leak detection to HTTP-only cookies and CSRF protection — account security is our top priority and we're constantly iterating to better protect against threats.

See the threats we protect against →

Ready to see what Clerk can do for you?

Start completely free for up to 10,000 monthly active users. No credit card required.

Pricing details
Learn more about our transparent per-user costs to estimate how much your company could save by implementing Clerk.