This repository contains a set of small, framework-specific projects that demonstrate how to implement authentication with Better Auth.
- 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.