[PR #5379] [MERGED] docs: update tanstack installation example #5970

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5379
Author: @ping-maxwell
Created: 10/17/2025
Status: Merged
Merged: 10/17/2025
Merged by: @Bekacru

Base: canaryHead: docs/fix-tanstack-installation


📝 Commits (1)

  • 1e7723d docs: Fix tanstack installation docs

📊 Changes

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

View changed files

📝 docs/content/docs/installation.mdx (+14 -10)

📄 Description

Summary by cubic

Corrected the TanStack Router installation docs to use createFileRoute with server handlers for /api/auth/$, matching the current API. This prevents errors when copying the example.

  • Bug Fixes
    • Switched from @tanstack/react-start/server to @tanstack/react-router with server.handlers (GET/POST).
    • Updated imports and added Request type annotations in the example.

🔄 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/5379 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 10/17/2025 **Status:** ✅ Merged **Merged:** 10/17/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `docs/fix-tanstack-installation` --- ### 📝 Commits (1) - [`1e7723d`](https://github.com/better-auth/better-auth/commit/1e7723d996012c026d4c59048da939524d435514) docs: Fix tanstack installation docs ### 📊 Changes **1 file changed** (+14 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/installation.mdx` (+14 -10) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Corrected the TanStack Router installation docs to use createFileRoute with server handlers for /api/auth/$, matching the current API. This prevents errors when copying the example. - **Bug Fixes** - Switched from @tanstack/react-start/server to @tanstack/react-router with server.handlers (GET/POST). - Updated imports and added Request type annotations in the example. <!-- 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 12:43:09 -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#5970