├── .env.example ├── .eslintrc.json ├── .gitignore ├── README.md ├── actions └── email.ts ├── app ├── (auth) │ ├── email-verified │ │ └── page.tsx │ ├── forgot-password │ │ └── page.tsx │ ├── reset-password │ │ └── page.tsx │ ├── sign-in │ │ └── page.tsx │ └── sign-up │ │ └── page.tsx ├── admin │ └── page.tsx ├── api │ └── auth │ │ └── [...all] │ │ └── route.ts ├── favicon.ico ├── fonts │ ├── GeistMonoVF.woff │ └── GeistVF.woff ├── globals.css ├── layout.tsx └── page.tsx ├── auth-client.ts ├── auth.ts ├── components.json ├── components ├── admin │ ├── impersonate-user.tsx │ └── users-table.tsx ├── auth-buttons.tsx ├── loading-button.tsx ├── navbar.tsx ├── signout-button.tsx └── ui │ ├── button.tsx │ ├── card.tsx │ ├── form.tsx │ ├── input.tsx │ ├── label.tsx │ ├── select.tsx │ ├── switch.tsx │ ├── table.tsx │ ├── toast.tsx │ └── toaster.tsx ├── hooks └── use-toast.ts ├── lib ├── prisma.ts ├── utils.ts └── zod.ts ├── middleware.ts ├── next.config.ts ├── package.json ├── pnpm-lock.yaml ├── postcss.config.mjs ├── prisma └── schema.prisma ├── public ├── file.svg ├── globe.svg ├── next.svg ├── vercel.svg └── window.svg ├── tailwind.config.ts └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | https://www.youtube.com/watch?v=V--T0q9FrEw 2 | -------------------------------------------------------------------------------- /actions/email.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/actions/email.ts -------------------------------------------------------------------------------- /app/(auth)/email-verified/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/app/(auth)/email-verified/page.tsx -------------------------------------------------------------------------------- /app/(auth)/forgot-password/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/app/(auth)/forgot-password/page.tsx -------------------------------------------------------------------------------- /app/(auth)/reset-password/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/app/(auth)/reset-password/page.tsx -------------------------------------------------------------------------------- /app/(auth)/sign-in/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/app/(auth)/sign-in/page.tsx -------------------------------------------------------------------------------- /app/(auth)/sign-up/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/app/(auth)/sign-up/page.tsx -------------------------------------------------------------------------------- /app/admin/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/app/admin/page.tsx -------------------------------------------------------------------------------- /app/api/auth/[...all]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/app/api/auth/[...all]/route.ts -------------------------------------------------------------------------------- /app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/app/favicon.ico -------------------------------------------------------------------------------- /app/fonts/GeistMonoVF.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/app/fonts/GeistMonoVF.woff -------------------------------------------------------------------------------- /app/fonts/GeistVF.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/app/fonts/GeistVF.woff -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/app/globals.css -------------------------------------------------------------------------------- /app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/app/layout.tsx -------------------------------------------------------------------------------- /app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/app/page.tsx -------------------------------------------------------------------------------- /auth-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/auth-client.ts -------------------------------------------------------------------------------- /auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/auth.ts -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components.json -------------------------------------------------------------------------------- /components/admin/impersonate-user.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/admin/impersonate-user.tsx -------------------------------------------------------------------------------- /components/admin/users-table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/admin/users-table.tsx -------------------------------------------------------------------------------- /components/auth-buttons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/auth-buttons.tsx -------------------------------------------------------------------------------- /components/loading-button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/loading-button.tsx -------------------------------------------------------------------------------- /components/navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/navbar.tsx -------------------------------------------------------------------------------- /components/signout-button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/signout-button.tsx -------------------------------------------------------------------------------- /components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/ui/button.tsx -------------------------------------------------------------------------------- /components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/ui/card.tsx -------------------------------------------------------------------------------- /components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/ui/form.tsx -------------------------------------------------------------------------------- /components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/ui/input.tsx -------------------------------------------------------------------------------- /components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/ui/label.tsx -------------------------------------------------------------------------------- /components/ui/select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/ui/select.tsx -------------------------------------------------------------------------------- /components/ui/switch.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/ui/switch.tsx -------------------------------------------------------------------------------- /components/ui/table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/ui/table.tsx -------------------------------------------------------------------------------- /components/ui/toast.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/ui/toast.tsx -------------------------------------------------------------------------------- /components/ui/toaster.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/components/ui/toaster.tsx -------------------------------------------------------------------------------- /hooks/use-toast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/hooks/use-toast.ts -------------------------------------------------------------------------------- /lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/lib/prisma.ts -------------------------------------------------------------------------------- /lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/lib/utils.ts -------------------------------------------------------------------------------- /lib/zod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/lib/zod.ts -------------------------------------------------------------------------------- /middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/middleware.ts -------------------------------------------------------------------------------- /next.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/next.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /public/file.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/public/file.svg -------------------------------------------------------------------------------- /public/globe.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/public/globe.svg -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /public/window.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/public/window.svg -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityasinghcodes/better-auth-nextjs/HEAD/tsconfig.json --------------------------------------------------------------------------------