[PR #6476] [MERGED] docs: update usage in Next.js integration #6693

Closed
opened 2026-03-13 13:08:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6476
Author: @himself65
Created: 12/2/2025
Status: Merged
Merged: 12/2/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/12/02/docs


📝 Commits (1)

  • 801b6a1 docs: update usage in Next.js integration

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docs/content/docs/integrations/next.mdx (+1 -1)

📄 Description

Fixes: https://github.com/better-auth/better-auth/issues/6474


Summary by cubic

Updated Next.js integration docs to pass auth directly to toNextJsHandler, replacing toNextJsHandler(auth.handler). Fixes the incorrect example from #6474 and aligns with the current API.

Written for commit 801b6a17fb. 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/6476 **Author:** [@himself65](https://github.com/himself65) **Created:** 12/2/2025 **Status:** ✅ Merged **Merged:** 12/2/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/12/02/docs` --- ### 📝 Commits (1) - [`801b6a1`](https://github.com/better-auth/better-auth/commit/801b6a17fb5f68637888f05e71e947437e134324) docs: update usage in Next.js integration ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/next.mdx` (+1 -1) </details> ### 📄 Description Fixes: https://github.com/better-auth/better-auth/issues/6474 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated Next.js integration docs to pass auth directly to toNextJsHandler, replacing toNextJsHandler(auth.handler). Fixes the incorrect example from #6474 and aligns with the current API. <sup>Written for commit 801b6a17fb5f68637888f05e71e947437e134324. 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-03-13 13:08:28 -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#6693