Tanstack Start with SolidJS #1413

Open
opened 2026-03-13 08:38:51 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @Escapado on GitHub (Jun 24, 2025).

Is this suited for github?

  • Yes, this is suited for github

Hey,

I noticed that the tanstack start docs assume that one uses it with reactjs although solidjs is also supported experimentally. I would love to see support for this in better-auth. If I am correct, then a new plugin akin to this would need to be created. I saw that a solid-start plugin file already exists but that pertains to the framework solid start and not tanstack start so naming might be challenging here. I think a copy of this file with the names and the import adjusted (lines 5, 7, 24), as well as updated docs might suffice.

Furthermore it appears that in the docs the way to create the API route in tanstack start does not match with the documentation. The function has been renamed to createServerFileRoute and works just very slightly different.

If the maintainers are ok with this addition and would like someone to help I am happy to jump on this issue and create a pull request for this, if we can agree on the naming for the plugin and the plugin file.

Describe the solution you'd like

I would like better-auth to work with tanstack solid.
I would like the docs to reflect the current API of tanstack start.

Describe alternatives you've considered

I thought about rolling my own plugin but it seems to simply belong to the code base.

Additional context

No response

Originally created by @Escapado on GitHub (Jun 24, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Hey, I noticed that the [tanstack start docs](https://www.better-auth.com/docs/integrations/tanstack) assume that one uses it with reactjs although solidjs is also supported experimentally. I would love to see support for this in better-auth. If I am correct, then a new plugin akin to [this](https://github.com/better-auth/better-auth/blob/1eff55bde85427d6bb2fafdc8691c4af11fbc301/packages/better-auth/src/integrations/react-start.ts) would need to be created. I saw that a `solid-start` plugin file already exists but that pertains to the framework solid start and not tanstack start so naming might be challenging here. I think a copy of this file with the names and the import adjusted (lines 5, 7, 24), as well as updated docs might suffice. Furthermore it appears that in the docs the way to create the API route in tanstack start does not match with the [documentation](https://tanstack.com/start/latest/docs/framework/solid/server-routes). The function has been renamed to `createServerFileRoute` and works just very slightly different. If the maintainers are ok with this addition and would like someone to help I am happy to jump on this issue and create a pull request for this, if we can agree on the naming for the plugin and the plugin file. ### Describe the solution you'd like I would like better-auth to work with tanstack solid. I would like the docs to reflect the current API of tanstack start. ### Describe alternatives you've considered I thought about rolling my own plugin but it seems to simply belong to the code base. ### Additional context _No response_
GiteaMirror added the solidplugintanstack-start labels 2026-03-13 08:38:51 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 23, 2025):

Hi, @Escapado. I'm Dosu, and I'm helping the better-auth team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You requested official support for Tanstack Start with SolidJS in better-auth, noting current documentation focuses on React.
  • You proposed creating a dedicated SolidJS plugin, updating imports and naming conventions accordingly.
  • You also suggested aligning documentation with the latest Tanstack Start API.
  • You offered to contribute a PR once there is agreement on plugin naming and approach.
  • There has been no further activity or maintainer response on this issue.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of better-auth by commenting here.
  • If I do not hear from you within 7 days, this issue will be automatically closed.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Sep 23, 2025): Hi, @Escapado. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog and am marking this issue as stale. **Issue Summary:** - You requested official support for Tanstack Start with SolidJS in better-auth, noting current documentation focuses on React. - You proposed creating a dedicated SolidJS plugin, updating imports and naming conventions accordingly. - You also suggested aligning documentation with the latest Tanstack Start API. - You offered to contribute a PR once there is agreement on plugin naming and approach. - There has been no further activity or maintainer response on this issue. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of better-auth by commenting here. - If I do not hear from you within 7 days, this issue will be automatically closed. Thank you for your understanding and contribution!
Author
Owner

@Escapado commented on GitHub (Sep 23, 2025):

Please let me know if this issue is still relevant with the latest version of better-auth by commenting here.

Yes, the issue is still relevant.

@Escapado commented on GitHub (Sep 23, 2025): > Please let me know if this issue is still relevant with the latest version of better-auth by commenting here. Yes, the issue is still relevant.
Author
Owner

@HoaX7 commented on GitHub (Oct 2, 2025):

following

@HoaX7 commented on GitHub (Oct 2, 2025): following
Author
Owner

@yanghuidong commented on GitHub (Dec 24, 2025):

Yeah, one of the main selling points of TanStack Start is that it's actually framework-agnostic, it's not really tied to React, so ideally, the integration with Better Auth should have separate packages as well for each of the UI frameworks supported by TanStack Start, e.g. "better-auth/tanstack-start/react", "better-auth/tanstack-start/solid", "better-auth/tanstack-start/vue", etc.

@yanghuidong commented on GitHub (Dec 24, 2025): Yeah, one of the main selling points of TanStack Start is that it's actually framework-agnostic, it's not really tied to React, so ideally, the integration with Better Auth should have separate packages as well for each of the UI frameworks supported by TanStack Start, e.g. "better-auth/tanstack-start/react", "better-auth/tanstack-start/solid", "better-auth/tanstack-start/vue", etc.
Author
Owner

@cyrillbrito commented on GitHub (Jan 16, 2026):

I think this is related
https://github.com/better-auth/better-auth/pull/7389

@cyrillbrito commented on GitHub (Jan 16, 2026): I think this is related https://github.com/better-auth/better-auth/pull/7389
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#1413