Overview
Solid package setup and runtime API boundaries.
@better-auth-ui/solid provides the Solid hooks and provider configuration. Core packages provide shared options factories and query helpers.
Plugin hooks are available from @better-auth-ui/solid/plugins/*. Server helpers are available from core server entrypoints.
Use Zaidan to install copied Solid components or configure TanStack Start routes. Use this section for the Solid package APIs.
Quick path
- Install the Solid package and Solid Query.
- Create a Better Auth client with
createAuthClient. - Wrap your app with
AuthProviderand pass aQueryClient. - Use base hooks from
@better-auth-ui/solid, plugin hooks from@better-auth-ui/solid/plugins/<plugin>, and shared option factories/helpers from@better-auth-ui/core. - Use the core server entrypoints when a server boundary needs authentication data.
npm install @better-auth-ui/solid @tanstack/solid-query better-auth solid-jsPackage exports
| Export | Owns |
|---|---|
better-auth/solid | Better Auth Solid client factory, including createAuthClient. |
@better-auth-ui/solid | AuthProvider, auth config types, provider icons, base query/mutation helpers, and hooks such as useSession. |
@better-auth-ui/solid/plugins/<plugin> | Optional plugin hooks such as API key, passkey, multi-session, organization, magic-link, and username APIs. |
@better-auth-ui/core / @better-auth-ui/core/server | Core-owned option factories plus client/server-safe query helpers and auth server types for SSR boundaries. |
@better-auth-ui/core/plugins/<plugin>/server | Plugin server-auth helpers for SSR boundaries that call your Better Auth server instance directly. |
What belongs elsewhere
- Use Zaidan for component installation, generated payloads, and copied-file ownership.
- Use Zaidan integrations for TanStack Start application setup.
- Use Zaidan Email for native Solid email templates.
- Use the Zaidan documentation for registry generation. This package reference does not describe React or HeroUI components.
Next
Last updated on