[PR #6076] [MERGED] docs: rewrite Auth.js migration guide #14674

Closed
opened 2026-04-13 09:34:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6076
Author: @bytaesu
Created: 11/18/2025
Status: Merged
Merged: 11/19/2025
Merged by: @himself65

Base: canaryHead: 2025-11-19/docs/rewrite-authjs-guide


📝 Commits (8)

  • 6ebeda9 chore: add mermaid package
  • 68abf6d docs: add mermaid component
  • 70d8a86 docs: apply mermaid component under docs routes
  • 415b902 docs: rename title from NextAuth to Authjs
  • ba94252 docs: rewrite Auth.js migration guide content
  • 224ae67 docs: drop mermaid
  • 556cba4 docs: adjust content from mermaid to database table
  • f9bffe9 fix: lockfile

📊 Changes

2 files changed (+696 additions, -123 deletions)

View changed files

📝 docs/components/sidebar-content.tsx (+1 -1)
📝 docs/content/docs/guides/next-auth-migration-guide.mdx (+695 -122)

📄 Description

  • Uses the DatabaseTable component to visually compare the core schema.
  • Update the guide title from “Next Auth Migration Guide” to “Auth.js Migration Guide” without changing the URL.
  • Rewrite the Auth.js (NextAuth.js) -> Better Auth migration guide content.

Summary by cubic

Rewrote the Auth.js → Better Auth migration guide with clearer steps, updated examples, and visual schema comparisons. Retitled the guide to “Auth.js Migration Guide” without changing its URL.

  • New Features

    • Used database tables in the guide to visualize Auth.js vs Better Auth core schemas.
  • Refactors

    • Fully updated the migration guide: client/server session APIs, sign-in/out flows, resource protection, and database model comparison.
    • Renamed the guide and sidebar label to “Auth.js Migration Guide” while keeping the existing route.
    • Removed Mermaid and switched to table-based comparisons.

Written for commit 556cba4eaa. 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/6076 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 11/18/2025 **Status:** ✅ Merged **Merged:** 11/19/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `2025-11-19/docs/rewrite-authjs-guide` --- ### 📝 Commits (8) - [`6ebeda9`](https://github.com/better-auth/better-auth/commit/6ebeda9a0486c044d7a4b6fa2be4155bc415c3a7) chore: add mermaid package - [`68abf6d`](https://github.com/better-auth/better-auth/commit/68abf6da6d77bced6b9ceee1a546637b8f1bfbdd) docs: add mermaid component - [`70d8a86`](https://github.com/better-auth/better-auth/commit/70d8a86ca4501483477bc938b8beace1b2e35128) docs: apply mermaid component under docs routes - [`415b902`](https://github.com/better-auth/better-auth/commit/415b902d588fad57607fde3da2a3276aac8c089d) docs: rename title from NextAuth to Authjs - [`ba94252`](https://github.com/better-auth/better-auth/commit/ba9425236307b3b7617610c9bc883cb744114d7f) docs: rewrite Auth.js migration guide content - [`224ae67`](https://github.com/better-auth/better-auth/commit/224ae67983f229f7835c5a5ae5f65288d653ed57) docs: drop mermaid - [`556cba4`](https://github.com/better-auth/better-auth/commit/556cba4eaaca5f777f7a396fa29c6d7b2d2a0ec0) docs: adjust content from mermaid to database table - [`f9bffe9`](https://github.com/better-auth/better-auth/commit/f9bffe933d0e24deeabcbc2387befffa5138b0fb) fix: lockfile ### 📊 Changes **2 files changed** (+696 additions, -123 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/sidebar-content.tsx` (+1 -1) 📝 `docs/content/docs/guides/next-auth-migration-guide.mdx` (+695 -122) </details> ### 📄 Description - Uses the DatabaseTable component to visually compare the core schema. - Update the guide title from “Next Auth Migration Guide” to “Auth.js Migration Guide” without changing the URL. - Rewrite the Auth.js (NextAuth.js) -> Better Auth migration guide content. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Rewrote the Auth.js → Better Auth migration guide with clearer steps, updated examples, and visual schema comparisons. Retitled the guide to “Auth.js Migration Guide” without changing its URL. - **New Features** - Used database tables in the guide to visualize Auth.js vs Better Auth core schemas. - **Refactors** - Fully updated the migration guide: client/server session APIs, sign-in/out flows, resource protection, and database model comparison. - Renamed the guide and sidebar label to “Auth.js Migration Guide” while keeping the existing route. - Removed Mermaid and switched to table-based comparisons. <sup>Written for commit 556cba4eaaca5f777f7a396fa29c6d7b2d2a0ec0. 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-13 09:34:43 -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#14674