[PR #6045] [MERGED] feat: move react-start to tanstack-start #6404

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6045
Author: @Bekacru
Created: 11/17/2025
Status: Merged
Merged: 11/21/2025
Merged by: @Bekacru

Base: canaryHead: fix/tanstack


📝 Commits (10+)

📊 Changes

5 files changed (+132 additions, -750 deletions)

View changed files

📝 docs/content/docs/integrations/tanstack.mdx (+3 -3)
📝 packages/better-auth/package.json (+12 -9)
📝 packages/better-auth/src/adapters/kysely-adapter/dialect.ts (+2 -1)
📝 packages/better-auth/src/integrations/tanstack-start.ts (+5 -3)
📝 pnpm-lock.yaml (+110 -734)

📄 Description

Summary by cubic

Fix the TanStack setCookie import by switching to "@tanstack/react-start/server" in packages/better-auth/src/integrations/tanstack-start.ts. Prevents runtime errors and ensures Set-Cookie headers are applied.

  • Bug Fixes

    • Cast the SQLite DB to SqliteDatabase in the Kysely adapter to avoid type issues.
  • Dependencies

    • Expose "./tanstack-start" (replacing "./react-start"), rename the plugin to tanstackStartCookies, add "@tanstack/react-start-server", and update docs to use "@tanstack/start/react-router" with "better-auth/tanstack-start".

Written for commit e36ba536e4. 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/6045 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 11/17/2025 **Status:** ✅ Merged **Merged:** 11/21/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/tanstack` --- ### 📝 Commits (10+) - [`f4f0507`](https://github.com/better-auth/better-auth/commit/f4f0507ed3046a4010c6b684e9d2cbf788082c99) fix: tanstack import path for setCookie - [`36ca5fa`](https://github.com/better-auth/better-auth/commit/36ca5fad79a0133b50a20a048038f7dd9993da47) chore: upgrade - [`62b1da4`](https://github.com/better-auth/better-auth/commit/62b1da441e90bbabcd52992a13d50267e0068b7d) add peer dep and also change to tanstack-start - [`10c5127`](https://github.com/better-auth/better-auth/commit/10c5127433b98259fd98b26117814a4e728a0005) tanstack - [`62369e0`](https://github.com/better-auth/better-auth/commit/62369e083395b37e9056c1553d58e5a4458c3ba8) chore: lockfile - [`4b4b6b1`](https://github.com/better-auth/better-auth/commit/4b4b6b16190cf4b614059cd8b8abbb6e86baf4a4) chore: change import path - [`45a48ff`](https://github.com/better-auth/better-auth/commit/45a48fffb4b8e3570156053ae2da2374bcc69726) chore: update - [`0565b6d`](https://github.com/better-auth/better-auth/commit/0565b6de3c7002a2ed23d4bbcf8f0d15ef544e71) update import path - [`c232835`](https://github.com/better-auth/better-auth/commit/c23283545d73155ce5a6001233a3a73496a893df) Merge branch 'canary' into fix/tanstack - [`e36ba53`](https://github.com/better-auth/better-auth/commit/e36ba536e4d3beb6ca5208ff37dbaa999732382a) chore: fix lockfile ### 📊 Changes **5 files changed** (+132 additions, -750 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/tanstack.mdx` (+3 -3) 📝 `packages/better-auth/package.json` (+12 -9) 📝 `packages/better-auth/src/adapters/kysely-adapter/dialect.ts` (+2 -1) 📝 `packages/better-auth/src/integrations/tanstack-start.ts` (+5 -3) 📝 `pnpm-lock.yaml` (+110 -734) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fix the TanStack setCookie import by switching to "@tanstack/react-start/server" in packages/better-auth/src/integrations/tanstack-start.ts. Prevents runtime errors and ensures Set-Cookie headers are applied. - **Bug Fixes** - Cast the SQLite DB to SqliteDatabase in the Kysely adapter to avoid type issues. - **Dependencies** - Expose "./tanstack-start" (replacing "./react-start"), rename the plugin to tanstackStartCookies, add "@tanstack/react-start-server", and update docs to use "@tanstack/start/react-router" with "better-auth/tanstack-start". <sup>Written for commit e36ba536e4d3beb6ca5208ff37dbaa999732382a. 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-03-13 12:57:43 -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#6404