Simple and Powerful AuthBuilt for Next.js

Magic links, social sign-in, multifactor, and more - added to your app in minutes.

Optimized for
Next.js logoVercel logo

“Really good stuff. The Next.js integration story is already really quite good and the Clerk team has really good ideas on how to make it even better and more seamless.”

gr
Guillermo Rauch
CEO, Vercel

Clerk supportsEdge middleware

Next.js edge middleware lets you run your code wherever your users are. Clerk keeps your sessions safe and revocable. All while still letting you authenticate at the edge <1ms!

Radically Simple.

It only takes one line of code.

<SignIn />

Your sign-in flow is the only thing sitting between existing users and your application—it’s absolutely critical that users can complete the process quickly.

import { SignIn } from "@clerk/nextjs";
...
return (
<>
<BackgroundImage />
<SignIn />
</>
);
...
sign-in-full

<UserProfile />

A place for your users to change their password, turn on multifactor auth, revoke bad sessions, and more. Every app should offer the best security options, so every user can be safe.

import { UserProfile } from "@clerk/nextjs";
...
return (
<>
<CustomHeader />
<UserProfile />
</>
);
...
user-profile-full

Immensely Powerful.

The features your users expect.

Magic links

Make passwords obsolete by sending your users magic links

Session management

Built specifically for Next.js. Revocable and stateless, the best of both worlds.

Multifactor authentication

Secure your users with multiple steps during sign in.

Social sign-in

Let your users sign in with Google, Facebook, and more

Multi-session management

Allow your users to sign in to multiple accounts at once.

New device notifications

Proactively notify users when a new device signs in. Let's your users protect themself.

Password leak protection

Proactively protects your users against passwords that appear in leaks.

Advanced security

Clerk detects and blocks phishy sign ins out of the box.

Open source examples

See them in action. Then, clone and customize to make them yours.

Simple

Simple

Using Clerk Components simply.

Featuring

  • Email Magic Links

  • Google OAuth

  • MFA w/ SMS

  • User profile component

Acme

Acme

Styling Clerk Components elegantly.

Featuring

  • Email or SMS Sign in

  • User button component

  • CSS in JS styling

  • User profile component

Widget

Widget

Collect custom fields at sign up.

Featuring

  • Email/password sign in

  • Styled components

  • Custom styling

  • Addt. sign up fields

Oasis

Oasis

Build a progressive sign up form.

Featuring

  • Email code sign in

  • User Profile

  • Fully customized

  • Addt. sign up fields

Ready to see what Clerk can do for you?Start your free trial today

Start completely free with up to 500 monthly active users. No credit card required.

Start building now