# Auth\.js

Open\-source JavaScript authentication packages with provider integrations and JWT or database sessions; now maintained by the Better Auth team\.

ID: Q770 · Revision: 818

Type: software · License: ISC[^license] · Status: active

Website: https://authjs.dev/



Auth\.js is a family of open\-source authentication packages, including the NextAuth\.js integration for Next\.js\. It provides identity\-provider integration and configurable session strategies rather than a hosted identity service\. The Better Auth team maintains the project for security patches and urgent issues and recommends Better Auth for most new projects, making existing\-application requirements especially important when evaluating it\.[^readme][^handoff]

## Capabilities and substitutions

### Provider\-based authentication — supported

Open\-source packages integrate OAuth/OIDC and other sign\-in mechanisms using application\-owned configuration\.[^readme]

Use case: Authentication integration in existing JavaScript web applications · Platforms: JavaScript web servers, Next\.js, SvelteKit, Express, Qwik · Region: Version, build and integration requirements apply

### Turnkey password account lifecycle — limited

Credentials forwards input to custom authorize logic; persistence, password handling, reset and abuse controls require application implementation\.[^credentials]

Use case: Authentication integration in existing JavaScript web applications · Platforms: JavaScript web servers, Next\.js, SvelteKit, Express, Qwik · Region: Version, build and integration requirements apply

### JWT session revocation — limited

Deleting a browser cookie does not invalidate another saved JWT before expiry without additional server\-side revocation tracking\.[^session]

Use case: Authentication integration in existing JavaScript web applications · Platforms: JavaScript web servers, Next\.js, SvelteKit, Express, Qwik · Region: Version, build and integration requirements apply

### Uniform production readiness — limited

The v5 guide uses a beta tag; the security page warns that non\-adapter @auth packages remain under development unless otherwise stated\.[^v5][^security]

Use case: Authentication integration in existing JavaScript web applications · Platforms: JavaScript web servers, Next\.js, SvelteKit, Express, Qwik · Region: Version, build and integration requirements apply

### [Substitute for Better Auth](/betterauth) — limited

Can address overlapping authentication needs, particularly in existing integrations, but maintainers recommend Better Auth for most new projects\. APIs and schemas are not interchangeable\.[^readme][^migration]

Use case: Authentication integration in existing JavaScript web applications · Platforms: JavaScript web servers, Next\.js, SvelteKit, Express, Qwik · Region: Version, build and integration requirements apply

## References

[^readme]: [Auth\.js repository README](<https://github.com/nextauthjs/next-auth/blob/main/README.md>) — Package family, providers and maintainer recommendation (vendor; retrieved 2026-10-07T22:40:58Z)

[^license]: [Auth\.js source license](<https://github.com/nextauthjs/next-auth/blob/main/LICENSE>) — ISC notice and permission terms (vendor; retrieved 2026-10-07T22:41:06Z)

[^handoff]: [Auth\.js joins Better Auth](<https://better-auth.com/blog/authjs-joins-better-auth>) — September 22, 2025 maintenance commitment and new\-project recommendation (vendor; retrieved 2026-10-07T22:41:13Z)

[^credentials]: [Auth\.js credentials provider](<https://authjs.dev/getting-started/authentication/credentials>) — Custom authorize logic and absent default persistence/recovery/rate limiting (vendor; retrieved 2026-10-07T22:41:06Z)

[^session]: [Auth\.js session strategies](<https://authjs.dev/concepts/session-strategies>) — JWT/database tradeoffs, revocation and adapter compatibility (vendor; retrieved 2026-10-07T22:41:06Z)

[^v5]: [NextAuth\.js v5 upgrade guide](<https://authjs.dev/getting-started/migrating-to-v5>) — Beta installation, changed APIs and adapter/edge caveats (vendor; retrieved 2026-10-07T22:40:58Z)

[^security]: [Auth\.js security policy](<https://authjs.dev/security>) — Latest\-version update policy and development status of non\-adapter @auth packages (vendor; retrieved 2026-10-07T22:41:13Z)

[^migration]: [Auth\.js to Better Auth migration](<https://authjs.dev/getting-started/migrate-to-better-auth>) — Migration work, schema differences and current stateless Better Auth support (vendor; retrieved 2026-10-07T22:41:13Z)

Source revision: https://substitutefor.net/entities/Q770?revision=818
