├── .dev.vars.exmaple ├── .eslintrc.json ├── .gitignore ├── README.md ├── components.json ├── migrations ├── 0001_create_user_table.sql └── 0002_create_passkey_table.sql ├── next.config.mjs ├── package.json ├── pnpm-lock.yaml ├── postcss.config.mjs ├── public ├── next.svg └── vercel.svg ├── src ├── app │ ├── (auth) │ │ └── sign-in │ │ │ └── page.tsx │ ├── api │ │ └── auth │ │ │ └── [...all] │ │ │ └── route.ts │ ├── dashboard │ │ ├── page.tsx │ │ └── user-card.tsx │ ├── favicon.ico │ ├── fonts │ │ ├── GeistMonoVF.woff │ │ └── GeistVF.woff │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── components │ ├── logo.tsx │ ├── sign-in-btn.tsx │ ├── sign-in.tsx │ ├── theme-provider.tsx │ ├── theme-toggle.tsx │ ├── ui │ │ ├── alert.tsx │ │ ├── avatar.tsx │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── checkbox.tsx │ │ ├── dialog.tsx │ │ ├── dropdown-menu.tsx │ │ ├── form.tsx │ │ ├── input-otp.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── password-input.tsx │ │ ├── select.tsx │ │ ├── separator.tsx │ │ ├── skeleton.tsx │ │ ├── sonner.tsx │ │ └── table.tsx │ └── wrapper.tsx ├── lib │ ├── auth-client.ts │ ├── auth-types.ts │ ├── auth.ts │ ├── db.ts │ ├── metadata.ts │ └── utils.ts └── types │ └── env.d.ts ├── tailwind.config.ts ├── tsconfig.json └── wrangler.toml.example /.dev.vars.exmaple: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/.dev.vars.exmaple -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/README.md -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/components.json -------------------------------------------------------------------------------- /migrations/0001_create_user_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/migrations/0001_create_user_table.sql -------------------------------------------------------------------------------- /migrations/0002_create_passkey_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/migrations/0002_create_passkey_table.sql -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/app/(auth)/sign-in/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/app/(auth)/sign-in/page.tsx -------------------------------------------------------------------------------- /src/app/api/auth/[...all]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/app/api/auth/[...all]/route.ts -------------------------------------------------------------------------------- /src/app/dashboard/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/app/dashboard/page.tsx -------------------------------------------------------------------------------- /src/app/dashboard/user-card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/app/dashboard/user-card.tsx -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/fonts/GeistMonoVF.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/app/fonts/GeistMonoVF.woff -------------------------------------------------------------------------------- /src/app/fonts/GeistVF.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/app/fonts/GeistVF.woff -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/components/logo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/logo.tsx -------------------------------------------------------------------------------- /src/components/sign-in-btn.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/sign-in-btn.tsx -------------------------------------------------------------------------------- /src/components/sign-in.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/sign-in.tsx -------------------------------------------------------------------------------- /src/components/theme-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/theme-provider.tsx -------------------------------------------------------------------------------- /src/components/theme-toggle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/theme-toggle.tsx -------------------------------------------------------------------------------- /src/components/ui/alert.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/alert.tsx -------------------------------------------------------------------------------- /src/components/ui/avatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/avatar.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/card.tsx -------------------------------------------------------------------------------- /src/components/ui/checkbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/checkbox.tsx -------------------------------------------------------------------------------- /src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /src/components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/form.tsx -------------------------------------------------------------------------------- /src/components/ui/input-otp.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/input-otp.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/password-input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/password-input.tsx -------------------------------------------------------------------------------- /src/components/ui/select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/select.tsx -------------------------------------------------------------------------------- /src/components/ui/separator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/separator.tsx -------------------------------------------------------------------------------- /src/components/ui/skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/skeleton.tsx -------------------------------------------------------------------------------- /src/components/ui/sonner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/sonner.tsx -------------------------------------------------------------------------------- /src/components/ui/table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/ui/table.tsx -------------------------------------------------------------------------------- /src/components/wrapper.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/components/wrapper.tsx -------------------------------------------------------------------------------- /src/lib/auth-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/lib/auth-client.ts -------------------------------------------------------------------------------- /src/lib/auth-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/lib/auth-types.ts -------------------------------------------------------------------------------- /src/lib/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/lib/auth.ts -------------------------------------------------------------------------------- /src/lib/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/lib/db.ts -------------------------------------------------------------------------------- /src/lib/metadata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/lib/metadata.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/types/env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/src/types/env.d.ts -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/tsconfig.json -------------------------------------------------------------------------------- /wrangler.toml.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bekacru/better-auth-nextjs-cf-d1-example/HEAD/wrangler.toml.example --------------------------------------------------------------------------------