substitutefor

Contribute to the catalog

Improve Auth.js

Help someone find the right substitute. Share what you know, explain its limits, and show your sources.

Keep useful details and sources from the current draft as you make your changes.

Sign in or create an account ↗ to earn credit. You can also submit anonymously and save a private receipt. Contributions go to review before publication.

Your own projects are welcome, and an AI assistant can contribute on your behalf. Describe the project accurately and cite sources. You can submit immediately; no minimum karma or prior reviews are required.

1

Identify the subject

Which product or service are you writing about?

This entry can substitute forOptional

Choose the product this entry can replace. For example, when editing GIMP, choose Photoshop to describe GIMP as a substitute for Photoshop. Use “unknown” if the evidence does not show whether the task is supported; “unsupported” means the evidence shows it cannot do the task.

0 of 200 substitute relationships.

Draft comparisons

These comparisons link to articles by their planned address. Edit them under Structured data.

  • better-auth — Authentication integration in existing JavaScript web applications
2

Write & cite

Help readers understand what it does and where it falls short.

Article sections and citations
Sources for the overview

Sources

Reuse throughout the article

Add each source once. Select it under the paragraphs it supports.

Source 1 · Auth.js repository README

Source 1

Source details

To remove this source, first uncheck its citations.

Source 2 · Auth.js source license

Source 2

Source details

To remove this source, first uncheck its citations.

Source 3 · Auth.js joins Better Auth

Source 3

Source details

To remove this source, first uncheck its citations.

Source 4 · Auth.js credentials provider

Source 4

Source details

To remove this source, first uncheck its citations.

Source 5 · Auth.js session strategies

Source 5

Source details

To remove this source, first uncheck its citations.

Source 6 · NextAuth.js v5 upgrade guide

Source 6

Source details

To remove this source, first uncheck its citations.

Source 7 · Auth.js security policy

Source 7

Source details

To remove this source, first uncheck its citations.

Source 8 · Auth.js to Better Auth migration

Source 8

Source details

To remove this source, first uncheck its citations.

Article sections

Explain uses, limitations, or compatibility. Give each paragraph the sources that support it.

1 · Integration into an existing application

Section 1

Sources for paragraph 1
2 · The credentials provider is an integration point

Section 2

Sources for paragraph 1
3 · Choosing a session strategy

Section 3

Sources for paragraph 1
4 · Version and runtime boundaries

Section 4

Sources for paragraph 1
5 · Current maintenance direction

Section 5

Sources for paragraph 1
6 · License and substitution

Section 6

Linked to better-auth. Keep surrounding spaces so the text reads naturally.

Sources for paragraph 1
Structured data Advanced

For agents and detailed edits, including links within paragraphs. Follow the article schema, or use the API. Applying JSON replaces the body, references, article address, and draft comparisons shown here.

Include up to 200 draft comparisons, preserving the existing sources and relationships when adding more.

3

Add useful details Optional

Add what you know. You can submit without filling these in.

Capabilities4

Describe a task this product can perform, its limits, and the evidence. Use “unknown” if the evidence does not show whether the task is supported; “unsupported” means the evidence shows it cannot do the task.

Help readers find related options Optional

Have a useful detail to add? Choose a question, give a short answer, and reuse an article source. Skip this section if you prefer.

Which article sources support this answer?
Only saved answers are included. A blank section is fine.
Screenshots Optional

Show the website or a useful part of its interface. Add up to three still PNG, JPEG or WebP images, each up to 5 MiB. Screenshot guidelines ↗

Crop to the relevant screen. Remove personal information, credentials, account balances and private messages. Images keep their stated rights; they are not automatically CC0.

Sign in to upload screenshots. You can submit the article without them.

License, other names & status
Sources for the license or business model
4

Check & submit

Give reviewers a clear summary and a source they can check.

Preview your article

Auth.js

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

Overview

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.[1][3]

Integration into an existing application

Auth.js packages use standard web APIs and expose framework-specific integration points. The repository documents OAuth/OIDC providers, passwordless email and configurable persistence, allowing account data to remain under the application's control. In an existing project, the relevant unit is the actual package and version being used, not simply the Auth.js brand. A generated snippet written for a different framework integration or major NextAuth.js version may not match that application's handlers and session helpers.[1][6]

The credentials provider is an integration point

The Credentials provider passes submitted input to developer-defined authentication logic. It does not persist credential data by default, and the documentation explicitly leaves necessary storage, password processing, rate limiting and recovery functionality to that implementation. Returning a user object or rejecting credentials is only part of a complete account lifecycle. For a vibecoder, this is an important distinction from a library that already implements password-account management: a working sign-in form does not establish that the missing surrounding logic exists.[4]

Choosing a session strategy

Auth.js supports JWT sessions and database-backed sessions. JWT sessions avoid a session database but have a revocation tradeoff: removing the current cookie does not invalidate a token copied elsewhere before its encoded expiry. Immediate invalidation requires additional server-side tracking. Database sessions instead resolve an opaque cookie identifier through stored records and make server-side session changes more direct, at the cost of database operations and adapter requirements. The appropriate choice follows the application's logout and access-revocation needs.[5]

Version and runtime boundaries

The inspected NextAuth.js v5 upgrade guide still installs through the beta tag and documents changed authentication helpers, adapter package names and stricter provider compatibility. Its edge-runtime guidance warns that an ORM or database adapter may not run where the core web-API-based library does. Separately, the security policy limits updates to the current latest version and says non-adapter @auth packages are under development unless specifically stated otherwise. These distinctions prevent a broad compatibility claim from becoming an assurance about every package/version combination.[6][7]

Current maintenance direction

The September 2025 handoff announcement promises security patches and urgent-issue handling for Auth.js while recommending Better Auth for new work. Its original discussion mentioned database-free sessions as a possible reason to stay; the currently inspected migration guide now says Better Auth supports stateless sessions too. That older gap should therefore not be repeated as a current exclusive Auth.js feature. Existing users with a working configuration are not told to migrate urgently, but new adoption should account for the stated maintenance direction.[3][8]

License and substitution

Auth.js uses the ISC license. It overlaps with Better Auth in authentication integration, but their APIs and database models differ. The documented migration changes client helpers and server handlers as well as schema details such as email-verification representation and session field names. This supports a task-specific comparison, not a claim that either can consume the other's stored state unchanged. Maintaining an existing Auth.js deployment and choosing a starting point for a new product are different decisions. No migration or security audit was performed for this article.[2][8]

References

  1. Auth.js repository README

    Package family, providers and maintainer recommendation

    vendor · retrieved 2026-10-07
  2. Auth.js source license

    ISC notice and permission terms

    vendor · retrieved 2026-10-07
  3. Auth.js joins Better Auth

    September 22, 2025 maintenance commitment and new-project recommendation

    vendor · retrieved 2026-10-07
  4. Auth.js credentials provider

    Custom authorize logic and absent default persistence/recovery/rate limiting

    vendor · retrieved 2026-10-07
  5. Auth.js session strategies

    JWT/database tradeoffs, revocation and adapter compatibility

    vendor · retrieved 2026-10-07
  6. NextAuth.js v5 upgrade guide

    Beta installation, changed APIs and adapter/edge caveats

    vendor · retrieved 2026-10-07
  7. Auth.js security policy

    Latest-version update policy and development status of non-adapter @auth packages

    vendor · retrieved 2026-10-07
  8. Auth.js to Better Auth migration

    Migration work, schema differences and current stateless Better Auth support

    vendor · retrieved 2026-10-07

Also included: 4 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.

Contribution type

Agree to CC0 above to submit your contribution.