MCPcopy Index your code
hub / github.com/better-auth-ui/better-auth-ui

github.com/better-auth-ui/better-auth-ui @v1.6.27

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.6.27 ↗ · + Follow
2,817 symbols 9,757 edges 1,367 files 52 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Better Auth UI

Beautiful, ready-to-use authentication components for Better Auth.

Built with shadcn/ui and HeroUI. Drop in and go.

better-auth-ui.com

DocumentationDemo


Looking for the legacy package? Legacy BranchLegacy Docs


Screenshots

shadcn/ui

shadcn/ui Sign In

HeroUI

HeroUI Sign In


Features

  • Fully Customizable — Built on shadcn/ui and HeroUI. Own your code, style it your way.
  • Drop-in Ready — Pre-built Sign In, Sign Up, Forgot Password, and more. Just add and configure.
  • Better Auth Native — Built specifically for Better Auth. Social logins, magic links, and more.

Installation

shadcn/ui

bun x shadcn@latest add https://better-auth-ui.com/r/auth.json

HeroUI

bun add @better-auth-ui/heroui@latest

License

This project is licensed under the MIT License. See the LICENSE file for details.

Extension points exported contracts — how you extend this code

AdditionalFieldRegister (Interface)
Widen `AdditionalField.label` to `ReactNode` in the React package.
packages/react/src/components/auth/auth-provider.tsx
AuthViewPaths (Interface)
Widens `AuthViewPaths` by adding the `"magicLink"` path when this plugin is imported.
packages/core/src/plugins/magic-link/magic-link-plugin.ts
AdditionalFieldRegister (Interface)
Widen `AdditionalField.label` to `ReactNode` in the shadcn package.
apps/docs/src/components/auth/auth-provider.tsx
AdditionalFieldRegister (Interface)
Widen `AdditionalField.label` to `ReactNode` in the shadcn package.
examples/start-shadcn-example/src/components/auth/auth-provider.tsx
AdditionalFieldRegister (Interface)
Widen `AdditionalField.label` to `ReactNode` in the shadcn package.
examples/start-shadcn-baseui-example/src/components/auth/auth-provider.tsx
AdditionalFieldRegister (Interface)
Widen `AdditionalField.label` to `ReactNode` in the shadcn package.
examples/next-shadcn-example/src/components/auth/auth-provider.tsx
SignInProps (Interface)
(no doc)
packages/heroui/src/components/auth/sign-in.tsx
EmailVerificationEmailProps (Interface)
(no doc)
packages/solid/src/components/auth/email/email-verification.tsx

Core symbols most depended-on inside this repo

useAuth
called by 380
packages/react/src/components/auth/auth-provider.tsx
useAuthPlugin
called by 237
packages/react/src/hooks/use-auth-plugin.ts
cn
called by 231
packages/react/src/lib/utils.ts
cn
called by 202
apps/docs/src/lib/utils.ts
cn
called by 201
examples/next-shadcn-example/src/lib/utils.ts
cn
called by 196
examples/start-shadcn-example/src/lib/utils.ts
cn
called by 196
examples/start-shadcn-baseui-example/src/lib/utils.ts
useSession
called by 128
packages/react/src/queries/auth/session-query.ts

Shape

Function 2,715
Interface 102

Languages

TypeScript100%

Modules by API surface

examples/start-solid-zaidan-example/tests/registry.test.ts21 symbols
examples/start-solid-zaidan-example/src/components/auth/user/user-button.tsx16 symbols
examples/start-shadcn-example/src/components/ui/combobox.tsx16 symbols
examples/start-shadcn-baseui-example/src/components/ui/combobox.tsx16 symbols
examples/next-shadcn-example/src/components/ui/combobox.tsx16 symbols
apps/docs/src/components/ui/combobox.tsx16 symbols
examples/start-solid-zaidan-example/src/components/ui/dropdown-menu.tsx15 symbols
examples/start-solid-zaidan-example/src/components/auth/organization/organization-switcher.tsx15 symbols
examples/start-solid-zaidan-example/src/components/auth/organization/organization-invitations.tsx15 symbols
examples/start-shadcn-example/src/components/ui/dropdown-menu.tsx15 symbols
examples/start-shadcn-baseui-example/src/components/ui/dropdown-menu.tsx15 symbols
examples/next-shadcn-example/src/components/ui/dropdown-menu.tsx15 symbols

For agents

$ claude mcp add better-auth-ui \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page