[PR #6824] [MERGED] Fix: Docs uses latest getRequestHeaders() to grab headers from request in Auth Middleware in Tanstack Start #15152

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6824
Author: @anmol-fzr
Created: 12/17/2025
Status: Merged
Merged: 12/17/2025
Merged by: @Bekacru

Base: canaryHead: docs/tanstack-start-request-header


📝 Commits (1)

  • fbe189b Fix: Docs uses latest getRequestHeaders() to grab headers from request in Auth Middleware in Tanstack Start

📊 Changes

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

View changed files

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

📄 Description

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


Summary by cubic

Updated TanStack Start auth middleware docs to use getRequestHeaders() for server-side header access. Ensures sessions resolve correctly with the latest TanStack Start.

  • Bug Fixes
    • Replaced request.headers with getRequestHeaders() in the example to match current server API and fix the broken auth example (better-auth/better-auth#6818).

Written for commit fbe189b12d. 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/6824 **Author:** [@anmol-fzr](https://github.com/anmol-fzr) **Created:** 12/17/2025 **Status:** ✅ Merged **Merged:** 12/17/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `docs/tanstack-start-request-header` --- ### 📝 Commits (1) - [`fbe189b`](https://github.com/better-auth/better-auth/commit/fbe189b12d746a34bf6e41685aac9970867228c4) Fix: Docs uses latest `getRequestHeaders()` to grab headers from request in Auth Middleware in Tanstack Start ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/tanstack.mdx` (+3 -1) </details> ### 📄 Description Fixes: https://github.com/better-auth/better-auth/issues/6818 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated TanStack Start auth middleware docs to use getRequestHeaders() for server-side header access. Ensures sessions resolve correctly with the latest TanStack Start. - **Bug Fixes** - Replaced request.headers with getRequestHeaders() in the example to match current server API and fix the broken auth example (better-auth/better-auth#6818). <sup>Written for commit fbe189b12d746a34bf6e41685aac9970867228c4. 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-04-13 09:51:24 -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#15152