BETTER-AUTH. UI

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

  1. Install the Solid package and Solid Query.
  2. Create a Better Auth client with createAuthClient.
  3. Wrap your app with AuthProvider and pass a QueryClient.
  4. 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.
  5. Use the core server entrypoints when a server boundary needs authentication data.
npm install @better-auth-ui/solid @tanstack/solid-query better-auth solid-js

Package exports

ExportOwns
better-auth/solidBetter Auth Solid client factory, including createAuthClient.
@better-auth-ui/solidAuthProvider, 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/serverCore-owned option factories plus client/server-safe query helpers and auth server types for SSR boundaries.
@better-auth-ui/core/plugins/<plugin>/serverPlugin 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

On this page