[PR #7742] [MERGED] docs: improve TanStack Start integration guide #15775

Closed
opened 2026-04-13 10:13:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7742
Author: @bytaesu
Created: 2/1/2026
Status: Merged
Merged: 2/2/2026
Merged by: @himself65

Base: canaryHead: 2026-02-01/docs/improve-tanstack-start-guide


📝 Commits (1)

  • c790254 docs: improve TanStack Start integration guide

📊 Changes

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

View changed files

📝 docs/content/docs/integrations/tanstack.mdx (+98 -22)

📄 Description

Note


Summary by cubic

Updated the TanStack Start integration guide to use beforeLoad and server-side helpers (getSession, ensureSession) for auth, replacing the middleware pattern. Adds examples for protected routes, a pathless layout with login redirects, and securing server functions with createServerFn so auth checks work on both client and server.

Written for commit c790254fe5. Summary will update 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/7742 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 2/1/2026 **Status:** ✅ Merged **Merged:** 2/2/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `2026-02-01/docs/improve-tanstack-start-guide` --- ### 📝 Commits (1) - [`c790254`](https://github.com/better-auth/better-auth/commit/c790254fe55dcd14ca5c08a7d2bf22eda7012d58) docs: improve TanStack Start integration guide ### 📊 Changes **1 file changed** (+98 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/tanstack.mdx` (+98 -22) </details> ### 📄 Description > [!NOTE] > - https://tanstack.com/start/latest/docs/framework/react/guide/selective-ssr > - https://tanstack.com/start/latest/docs/framework/react/guide/execution-model <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated the TanStack Start integration guide to use beforeLoad and server-side helpers (getSession, ensureSession) for auth, replacing the middleware pattern. Adds examples for protected routes, a pathless layout with login redirects, and securing server functions with createServerFn so auth checks work on both client and server. <sup>Written for commit c790254fe55dcd14ca5c08a7d2bf22eda7012d58. Summary will update 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 10:13:05 -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#15775