# Auth.js

> Authentication for the Web, formerly NextAuth.js

Source: https://talira.ai/catalog/auth-js-5dmx6p6x
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [security / auth / libraries](https://talira.ai/categories/security/auth/libraries)
- Platforms: web[^3]
- Licence: ISC[^1]
- Pricing: Free[^1]
- Pricing notes: Open source under ISC.
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- Plugins: yes[^2]
- Backed by: [Better Auth](https://talira.ai/orgs/better-auth.md)
- Funding: Seed, 2025[^4]

Auth.js (NextAuth.js for Next.js) is a set of open-source TypeScript packages for adding authentication to web apps in any JavaScript framework and runtime, built on standard Web APIs: next-auth for Next.js and @auth packages for SvelteKit, Express, Qwik and others. It signs users in with any OAuth 2.0 or OIDC service and has many built-in providers, plus email/passwordless sign-in and passkeys (WebAuthn). It works with a database through adapters for MySQL, MariaDB, Postgres, SQL Server, MongoDB, SQLite and more, or without one using stateless sessions in encrypted JWTs (JWE). It uses CSRF tokens, restrictive cookie policies and tab syncing by default, and callbacks control who can sign in and what goes in sessions. The project is now part of [Better Auth](https://talira.ai/catalog/better-auth-0xw03bw4.md), which recommends Better Auth for new projects except where Auth.js's stateless, database-less sessions are needed.

## Links

- Website: https://authjs.dev/
- GitHub: https://github.com/https://github.com/nextauthjs/next-auth
- Docs: https://authjs.dev/getting-started

## Problems it solves

- add sign in with GitHub or Google to my Next.js app
- authentication in SvelteKit or Express without a hosted auth service
- passwordless magic link login for a web app
- keep user accounts in our own database instead of a third-party auth provider
- stateless sessions without a database
- add passkeys to a JavaScript web app
- plug any OAuth or OIDC provider into our app's login

## Features

- OAuth 2.0 and OIDC with many built-in providers
- email and passwordless sign-in
- passkeys (WebAuthn)
- database adapters for MySQL, MariaDB, Postgres, SQL Server, MongoDB, SQLite and more
- stateless JWT sessions encrypted with JWE
- CSRF protection and restrictive cookies
- callbacks for sign-in, JWT and session control
- packages for Next.js, SvelteKit, Express, Qwik and more

## Capabilities

- Takes plugins: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.42 out of 1.
Signals: backing 0.55, extensibility 0.20.

- backed by Better Auth
- funding: Seed, 2025
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Better Auth](https://talira.ai/catalog/better-auth-0xw03bw4.md): The most comprehensive authentication framework for TypeScript
- [Clerk](https://talira.ai/catalog/clerk-pz0cjz27.md): Drop-in authentication and user management with prebuilt UI components

## Sources

[^1]: https://github.com/nextauthjs/next-auth/blob/main/LICENSE (checked 23 Nov 2026)
[^2]: https://github.com/nextauthjs/next-auth (checked 23 Nov 2026)
[^3]: https://authjs.dev/ (checked 23 Nov 2026)
[^4]: https://www.better-auth.com/blog/seed-round (checked 20 Nov 2026)
