MCPcopy Create free account
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% updated 6mo ago★ 445 open issues

Browse by type

Functions 373 Types & classes 28
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

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

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

Ask about this repo answers extend the page