[PR #7361] [MERGED] docs: update tanstack start integration #24158

Closed
opened 2026-04-15 22:12:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7361
Author: @syed-minhaj
Created: 1/14/2026
Status: Merged
Merged: 1/14/2026
Merged by: @himself65

Base: canaryHead: canary


📝 Commits (4)

📊 Changes

2 files changed (+34 additions, -18 deletions)

View changed files

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

📄 Description

tanstack start setup instructions in better-auth.com/docs/installation and better-auth.com/docs/integrations/tanstack are not in sync . I myself spend hours debugging tanstack errors which were occurring because I was following better-auth.com/docs/integrations/tanstack instructions . Which are outdated as tanstackStartCookies() plugin is no longer supported in tanstack start. Instructions in better-auth.com/docs/installation are up to date as tanstackStartCookies() plugin is no longer needed in later versions of tanstack start.

Changes:

  1. Removed tanstackStartCookies() plugin section
  2. Sync code example for src/routes/api/auth/$.ts

Docs at better-auth.com/docs/installation :

image

Docs at current better-auth.com/docs/integrations/tanstack:

image image

Docs at updated better-auth.com/docs/integrations/tanstack:

image image

Edit:

  • changing image

Summary by cubic

Sync TanStack Start docs across the installation and integration pages. Updates the API route example and adds guidance to use tanstackStartCookies for cookie handling to prevent setup errors.

  • Bug Fixes
    • Updated API route example to async GET/POST with typed Request and await auth.handler(request).
    • Fixed auth import path to '@/lib/auth'.
    • Added a Callout recommending the tanstackStartCookies plugin for cookie-setting flows.

Written for commit 3910a0d988. 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/7361 **Author:** [@syed-minhaj](https://github.com/syed-minhaj) **Created:** 1/14/2026 **Status:** ✅ Merged **Merged:** 1/14/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `canary` --- ### 📝 Commits (4) - [`9282a24`](https://github.com/better-auth/better-auth/commit/9282a2483e561cf375e4d2a7014abdf32ef6da7d) docs: fix , updating tanstack integration docs - [`3b02c15`](https://github.com/better-auth/better-auth/commit/3b02c15b47e0648fe79504dadff8e92fa14454cc) docs: update - [`b19b9b0`](https://github.com/better-auth/better-auth/commit/b19b9b027f9f0c46846284b0eb491cce985a6685) docs: fix - [`3910a0d`](https://github.com/better-auth/better-auth/commit/3910a0d98893bfde5e923b5246374b0051101f4f) Merge branch 'canary' into canary ### 📊 Changes **2 files changed** (+34 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/installation.mdx` (+25 -9) 📝 `docs/content/docs/integrations/tanstack.mdx` (+9 -9) </details> ### 📄 Description **tanstack start** setup instructions in _better-auth.com/docs/installation_ and _better-auth.com/docs/integrations/tanstack_ are not in sync . I myself spend hours debugging tanstack errors which were occurring because I was following _better-auth.com/docs/integrations/tanstack_ instructions . Which are outdated as **tanstackStartCookies()** plugin is no longer supported in tanstack start. Instructions in _better-auth.com/docs/installation_ are up to date as **tanstackStartCookies()** plugin is no longer needed in later versions of tanstack start. ### **Changes:** 1. Removed tanstackStartCookies() plugin section 2. Sync code example for src/routes/api/auth/$.ts ### **Docs at better-auth.com/docs/installation :** <img width="754" height="557" alt="image" src="https://github.com/user-attachments/assets/33b6804b-e2d4-49ec-ac04-4c14ba1eede1" /> ### **Docs at current better-auth.com/docs/integrations/tanstack:** <img width="767" height="565" alt="image" src="https://github.com/user-attachments/assets/ab19800b-1e27-4288-b494-dfeb92675411" /> <img width="768" height="567" alt="image" src="https://github.com/user-attachments/assets/86701e04-c360-4169-8137-b0378c0a0690" /> ### **Docs at updated better-auth.com/docs/integrations/tanstack:** <img width="750" height="562" alt="image" src="https://github.com/user-attachments/assets/778438a0-efa9-44e9-83f4-f2a718521441" /> <img width="761" height="533" alt="image" src="https://github.com/user-attachments/assets/dcf1480e-3b4b-4f44-8ab9-501ad8fd84d6" /> ### **Edit:** - changing image <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Sync TanStack Start docs across the installation and integration pages. Updates the API route example and adds guidance to use tanstackStartCookies for cookie handling to prevent setup errors. - **Bug Fixes** - Updated API route example to async GET/POST with typed Request and await auth.handler(request). - Fixed auth import path to '@/lib/auth'. - Added a Callout recommending the tanstackStartCookies plugin for cookie-setting flows. <sup>Written for commit 3910a0d98893bfde5e923b5246374b0051101f4f. 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-15 22:12:23 -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#24158