[PR #6007] [CLOSED] docs: rewrite Auth.js migration guide #23280

Closed
opened 2026-04-15 21:35:50 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6007
Author: @bytaesu
Created: 11/15/2025
Status: Closed

Base: canaryHead: 2025-11-16/docs/rewrite-next-auth-guide


📝 Commits (10+)

  • 320054e docs: allow DatabaseTables empty row
  • 046d53d docs: rewrite next-auth migration guide
  • ca088b1 docs: fix duplicate divider
  • 0da1426 docs: adjust content
  • 540a5e8 docs: more detail step-by-step guide
  • c1130ce fix wrong import path
  • 02aa0d2 chore: add mermaid package
  • 3f0698a docs: add mermaid compoent on docs
  • 842e827 docs: sidebar title from NextAuth to Auth.js
  • fb4cecd docs: update authjs migration content

📊 Changes

6 files changed (+1208 additions, -132 deletions)

View changed files

📝 docs/app/docs/[[...slug]]/page.tsx (+2 -0)
docs/components/mdx/mermaid.tsx (+60 -0)
📝 docs/components/sidebar-content.tsx (+1 -1)
📝 docs/content/docs/guides/next-auth-migration-guide.mdx (+401 -129)
📝 docs/package.json (+1 -0)
📝 pnpm-lock.yaml (+743 -2)

📄 Description

  • Rewrites the migration guide from Auth.js (NextAuth.js) to Better Auth.
  • Changed the guide title from “Next Auth Migration” to “Auth.js Migration” without touching the URL.
  • Added a Mermaid component for a visual comparison of the core schema.

Summary by cubic

Rewrote the Auth.js → Better Auth migration guide with a clear, step-by-step upgrade path and database schema comparisons using Mermaid ER diagrams. Added Mermaid support to the docs and improved table rendering for removed/unmapped fields.

  • New Features
    • End-to-end migration walkthrough: installation, route handler, client/server sign-in and sign-out, session APIs, and auth protection examples.
    • Schema comparison with precise field mappings (e.g., sessionToken → token, expires → expiresAt, emailVerified date → boolean), plus ER diagrams and annotated empty rows in tables.
    • Docs updates: new Mermaid component and dependency, MDX registry export, and sidebar title changed to “Auth.js Migration Guide.”

Written for commit dfb1ff533d. Summary will update automatically on new commits.


���� This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/6007 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 11/15/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `2025-11-16/docs/rewrite-next-auth-guide` --- ### 📝 Commits (10+) - [`320054e`](https://github.com/better-auth/better-auth/commit/320054e2a52ef3d93ced439753e71a57be911187) docs: allow DatabaseTables empty row - [`046d53d`](https://github.com/better-auth/better-auth/commit/046d53d7697a480d98d834f138995af5382a31b5) docs: rewrite next-auth migration guide - [`ca088b1`](https://github.com/better-auth/better-auth/commit/ca088b1e5b5f0429c53ab099ef227fcc49b51331) docs: fix duplicate divider - [`0da1426`](https://github.com/better-auth/better-auth/commit/0da1426126e386b8052d302f66a4a5d1e1532255) docs: adjust content - [`540a5e8`](https://github.com/better-auth/better-auth/commit/540a5e8ffbf22898ac6ad07f09941777f344d3ad) docs: more detail step-by-step guide - [`c1130ce`](https://github.com/better-auth/better-auth/commit/c1130ce0848ee391f4ef5747ffdad6051449b6a5) fix wrong import path - [`02aa0d2`](https://github.com/better-auth/better-auth/commit/02aa0d20a2cc08b5e4c8dcb6f664aa176e89a7be) chore: add mermaid package - [`3f0698a`](https://github.com/better-auth/better-auth/commit/3f0698a920dbd3f995157b4db62d68f7caff1896) docs: add mermaid compoent on docs - [`842e827`](https://github.com/better-auth/better-auth/commit/842e8272a7b3b0b341e3266e84cef5f1e48a0228) docs: sidebar title from NextAuth to Auth.js - [`fb4cecd`](https://github.com/better-auth/better-auth/commit/fb4cecd1314099707db60af044cf381e2c70b83e) docs: update authjs migration content ### 📊 Changes **6 files changed** (+1208 additions, -132 deletions) <details> <summary>View changed files</summary> 📝 `docs/app/docs/[[...slug]]/page.tsx` (+2 -0) ➕ `docs/components/mdx/mermaid.tsx` (+60 -0) 📝 `docs/components/sidebar-content.tsx` (+1 -1) 📝 `docs/content/docs/guides/next-auth-migration-guide.mdx` (+401 -129) 📝 `docs/package.json` (+1 -0) 📝 `pnpm-lock.yaml` (+743 -2) </details> ### 📄 Description - Rewrites the migration guide from Auth.js (NextAuth.js) to Better Auth. - Changed the guide title from “Next Auth Migration” to “Auth.js Migration” without touching the URL. - Added a Mermaid component for a visual comparison of the core schema. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Rewrote the Auth.js → Better Auth migration guide with a clear, step-by-step upgrade path and database schema comparisons using Mermaid ER diagrams. Added Mermaid support to the docs and improved table rendering for removed/unmapped fields. - New Features - End-to-end migration walkthrough: installation, route handler, client/server sign-in and sign-out, session APIs, and auth protection examples. - Schema comparison with precise field mappings (e.g., sessionToken → token, expires → expiresAt, emailVerified date → boolean), plus ER diagrams and annotated empty rows in tables. - Docs updates: new Mermaid component and dependency, MDX registry export, and sidebar title changed to “Auth.js Migration Guide.” <sup>Written for commit dfb1ff533dd5e86e6c28abee8b37ba6bf9a7b190. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>���� This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 21:35:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#23280