Authentication

Flexible authentication for Next.js — social, email, credentials.

Auth.js (formerly NextAuth) provides a flexible, provider-agnostic authentication layer for Next.js. Support for Google, GitHub, email magic links, and credentials — all configurable.

What you get

20+ OAuth providers (Google, GitHub, Apple, etc.)
Email magic link authentication
Credentials (email + password) provider
Session management with JWT or database sessions
Middleware-based route protection

FAQ

Should I use Auth.js or Clerk?

Clerk is easier to set up and includes pre-built UI components. Auth.js gives you more control and is free to self-host. Use Clerk for speed; Auth.js for flexibility and cost.

Does InBuild use Auth.js by default?

InBuild's built-in auth uses a lightweight JWT-based system. You can replace it with Auth.js or Clerk in the exported project — both integrate cleanly with Next.js App Router.

Other integrations