Skip to content
N

NextAuth

Authentication for Next.js

Open source

#9593in Developer Tools
0In stores

Description

NextAuth.js is an open-source authentication library for Next.js, documented at next-auth.js.org. It lets you add sign-in to an app with bui…

Highlights

  • Built-in sign-in for Google, GitHub, Discord and many more
  • Email, passwordless and magic-link sign-in
  • Database sessions or JWT with your choice of database
  • Signed cookies and CSRF checks for security

Ratings & Reviews

No ratings yet

Be the first to rate NextAuth.

People also visit

A

Auth.js

Authentication for the Web

Developer Tools
Launch
B

Better Auth

A comprehensive authentication framework offering email/password

Productivity
Launch
N

nextjs-authentication

Provides authentication implementation patterns for Next.js 15+ App Router

AI Skills
Get
N

nextjs-supabase-auth

Expert integration of Supabase Auth with Next.js App Router

AI Skills
Get
C

Clerk

Authentication and User Management

Developer Tools
Launch
A

auth0-nextjs

Adding Auth0 login, logout, protected pages

AI Skills
Get

NextAuth FAQ

Is NextAuth.js open source?

Yes. The source is on GitHub, and the site links the repository and its releases.

How do I install it?

Run npm install next-auth, then add your providers in an API route for Next.js.

Which databases does it support?

The site lists MySQL, MariaDB, Postgres, MongoDB and SQLite, or no database. You can also write a custom adapter.

Which sign-in services are included?

The site lists built-in support for many services, including Google, Apple, Facebook, Discord, GitHub, Auth0 and Okta, plus email and credentials.

Is NextAuth.js still active?

The site says NextAuth.js is now part of Better Auth.

What are the best NextAuth alternatives?

Popular alternatives to NextAuth include Auth.js, Clerk and Auth. See all NextAuth alternatives

Developer Stuff

Badges