[PR #4885] [MERGED] docs: use createFileRoute on TanStack API #13883

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4885
Author: @byte-264
Created: 9/24/2025
Status: Merged
Merged: 9/25/2025
Merged by: @himself65

Base: canaryHead: patch-2


📝 Commits (1)

  • 2136d1c Refactor TanStack API route to use createFileRoute

📊 Changes

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

View changed files

📝 docs/content/docs/integrations/tanstack.mdx (+13 -9)

📄 Description

Updated the TanStack integration example to use createFileRoute instead of createServerFileRoute and added POST method handling.


Summary by cubic

Updated the TanStack Router integration example to use createFileRoute with server.handlers and add POST support, aligning docs with the current API.

  • Refactors
    • Replace createServerFileRoute with createFileRoute from @tanstack/react-router.
    • Define GET and POST under server.handlers, both delegating to auth.handler.
    • Export Route instead of ServerRoute.

🔄 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/4885 **Author:** [@byte-264](https://github.com/byte-264) **Created:** 9/24/2025 **Status:** ✅ Merged **Merged:** 9/25/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `patch-2` --- ### 📝 Commits (1) - [`2136d1c`](https://github.com/better-auth/better-auth/commit/2136d1ca1aa53b6748e35fa761f14afd89d50b0f) Refactor TanStack API route to use createFileRoute ### 📊 Changes **1 file changed** (+13 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/tanstack.mdx` (+13 -9) </details> ### 📄 Description Updated the TanStack integration example to use createFileRoute instead of createServerFileRoute and added POST method handling. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated the TanStack Router integration example to use createFileRoute with server.handlers and add POST support, aligning docs with the current API. - **Refactors** - Replace createServerFileRoute with createFileRoute from @tanstack/react-router. - Define GET and POST under server.handlers, both delegating to auth.handler. - Export Route instead of ServerRoute. <!-- 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:11:44 -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#13883