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

github.com/better-auth/examples @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
401 symbols 1,180 edges 297 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Better Auth Examples

This repository contains a set of small, framework-specific projects that demonstrate how to implement authentication with Better Auth.

Examples

  • astro-example: Astro app with email/password auth, protected dashboard, and a two-factor authentication flow.
  • browser-extension-example: Chrome/Chromium extension (MV3) with a React popup demonstrating sign-in/sign-up and persisted session handling.
  • expo-example: Expo (React Native) app with sign-in/sign-up screens, secure session handling, and a simple dashboard.
  • nextjs-mcp: Next.js App Router app with server routes, client auth helpers, and a login page; includes a transport endpoint for MCP integrations.
  • nuxt-example: Nuxt 3 app with server API routes, auth middleware, protected pages, and a dashboard.
  • remix-example: Remix app using loaders/actions for auth, protected routes, and reusable UI components.
  • svelte-kit-example: SvelteKit app with hooks.server auth handling, protected routes, and a dashboard.
  • tanstack-example: TanStack Router + React app with protected routes, SSR entry, and a simple login flow.

Extension points exported contracts — how you extend this code

Register (Interface)
(no doc)
tanstack-example/app/router.tsx
BaseChartProps (Interface)
(no doc)
nuxt-example/components/ui/chart/interface.ts
CopyButtonProps (Interface)
(no doc)
react-router-example/app/components/ui/copy-button.tsx
Locals (Interface)
(no doc)
svelte-kit-example/src/app.d.ts
ButtonProps (Interface)
(no doc)
browser-extension-example/src/components/ui/button.tsx
FileRoutesByPath (Interface)
(no doc)
tanstack-example/app/routeTree.gen.ts
FieldProps (Interface)
(no doc)
nuxt-example/components/ui/auto-form/interface.ts
State (Interface)
(no doc)
react-router-example/app/hooks/use-toast.ts

Core symbols most depended-on inside this repo

cn
called by 165
astro-example/src/libs/cn.ts
cn
called by 49
react-router-example/app/lib/utils.ts
cn
called by 25
tanstack-example/app/lib/utils.ts
cn
called by 22
expo-example/src/lib/utils.ts
cn
called by 12
browser-extension-example/src/lib/utils.ts
dispatch
called by 5
nuxt-example/components/ui/toast/use-toast.ts
dispatch
called by 5
react-router-example/app/hooks/use-toast.ts
toast
called by 4
react-router-example/app/hooks/use-toast.ts

Shape

Function 373
Interface 27
Enum 1

Languages

TypeScript100%

Modules by API surface

nuxt-example/components/ui/auto-form/utils.ts13 symbols
astro-example/src/components/ui/menubar.tsx12 symbols
astro-example/src/components/ui/date-picker.tsx12 symbols
react-router-example/app/components/user-card.tsx11 symbols
astro-example/src/components/ui/dropdown-menu.tsx11 symbols
react-router-example/app/components/ui/dialog.tsx10 symbols
astro-example/src/components/ui/context-menu.tsx10 symbols
astro-example/src/components/ui/carousel.tsx10 symbols
react-router-example/app/hooks/use-toast.ts9 symbols
astro-example/src/components/ui/command.tsx9 symbols
nuxt-example/components/ui/toast/use-toast.ts8 symbols
astro-example/src/components/user-card.tsx8 symbols

For agents

$ claude mcp add examples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact