├── .env.example ├── .eslintrc.json ├── .gitignore ├── README.md ├── actions ├── login.ts ├── new-password.ts ├── profile.ts ├── register.ts ├── resend.ts ├── reset-password.ts ├── two-factor.ts └── verify-token.ts ├── app ├── (auth) │ ├── error │ │ └── page.tsx │ ├── layout.tsx │ ├── login │ │ └── page.tsx │ ├── new-password │ │ └── page.tsx │ ├── register │ │ └── page.tsx │ ├── resend │ │ └── page.tsx │ ├── reset │ │ └── page.tsx │ ├── two-factor │ │ └── page.tsx │ └── verify │ │ └── page.tsx ├── (main) │ ├── layout.tsx │ ├── page.tsx │ ├── profile │ │ └── page.tsx │ └── settings │ │ └── page.tsx ├── _components │ └── navbar.tsx ├── api │ └── auth │ │ └── [...nextauth] │ │ └── route.ts ├── favicon.ico ├── layout.tsx └── not-found.tsx ├── auth ├── config.ts ├── index.ts └── providers.ts ├── components.json ├── components ├── auth │ ├── card-wrapper.tsx │ ├── error-card.tsx │ ├── form-input.tsx │ ├── form-toggle.tsx │ └── social.tsx ├── form │ ├── login-form.tsx │ ├── new-password-form.tsx │ ├── profile-form.tsx │ ├── register-form.tsx │ ├── resend-form.tsx │ ├── reset-form.tsx │ ├── two-factor-form.tsx │ └── verify-token-form.tsx └── ui │ ├── avatar.tsx │ ├── button.tsx │ ├── card.tsx │ ├── dropdown-menu.tsx │ ├── form.tsx │ ├── input.tsx │ ├── label.tsx │ ├── separator.tsx │ ├── sonner.tsx │ └── switch.tsx ├── lib ├── auth.ts ├── db.ts └── utils.ts ├── middleware.ts ├── next.config.js ├── package.json ├── postcss.config.js ├── prisma └── schema.prisma ├── public ├── assets │ ├── email-verified.svg │ └── error.svg ├── next.svg └── vercel.svg ├── routes.ts ├── schemas └── index.ts ├── services ├── account.ts ├── mail.ts ├── reset-password-token.ts ├── two-factor-confirmation.ts ├── two-factor-token.ts ├── user.ts └── verification-token.ts ├── styles └── globals.css ├── tailwind.config.ts ├── tsconfig.json └── types ├── index.ts └── next-auth.d.ts /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/README.md -------------------------------------------------------------------------------- /actions/login.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/actions/login.ts -------------------------------------------------------------------------------- /actions/new-password.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/actions/new-password.ts -------------------------------------------------------------------------------- /actions/profile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/actions/profile.ts -------------------------------------------------------------------------------- /actions/register.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/actions/register.ts -------------------------------------------------------------------------------- /actions/resend.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/actions/resend.ts -------------------------------------------------------------------------------- /actions/reset-password.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/actions/reset-password.ts -------------------------------------------------------------------------------- /actions/two-factor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/actions/two-factor.ts -------------------------------------------------------------------------------- /actions/verify-token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/actions/verify-token.ts -------------------------------------------------------------------------------- /app/(auth)/error/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/(auth)/error/page.tsx -------------------------------------------------------------------------------- /app/(auth)/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/(auth)/layout.tsx -------------------------------------------------------------------------------- /app/(auth)/login/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/(auth)/login/page.tsx -------------------------------------------------------------------------------- /app/(auth)/new-password/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/(auth)/new-password/page.tsx -------------------------------------------------------------------------------- /app/(auth)/register/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/(auth)/register/page.tsx -------------------------------------------------------------------------------- /app/(auth)/resend/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/(auth)/resend/page.tsx -------------------------------------------------------------------------------- /app/(auth)/reset/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/(auth)/reset/page.tsx -------------------------------------------------------------------------------- /app/(auth)/two-factor/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/(auth)/two-factor/page.tsx -------------------------------------------------------------------------------- /app/(auth)/verify/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/(auth)/verify/page.tsx -------------------------------------------------------------------------------- /app/(main)/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/(main)/layout.tsx -------------------------------------------------------------------------------- /app/(main)/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/(main)/page.tsx -------------------------------------------------------------------------------- /app/(main)/profile/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/(main)/profile/page.tsx -------------------------------------------------------------------------------- /app/(main)/settings/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/(main)/settings/page.tsx -------------------------------------------------------------------------------- /app/_components/navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/_components/navbar.tsx -------------------------------------------------------------------------------- /app/api/auth/[...nextauth]/route.ts: -------------------------------------------------------------------------------- 1 | export { GET, POST } from "@/auth"; -------------------------------------------------------------------------------- /app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/favicon.ico -------------------------------------------------------------------------------- /app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/layout.tsx -------------------------------------------------------------------------------- /app/not-found.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/app/not-found.tsx -------------------------------------------------------------------------------- /auth/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/auth/config.ts -------------------------------------------------------------------------------- /auth/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/auth/index.ts -------------------------------------------------------------------------------- /auth/providers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/auth/providers.ts -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components.json -------------------------------------------------------------------------------- /components/auth/card-wrapper.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/auth/card-wrapper.tsx -------------------------------------------------------------------------------- /components/auth/error-card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/auth/error-card.tsx -------------------------------------------------------------------------------- /components/auth/form-input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/auth/form-input.tsx -------------------------------------------------------------------------------- /components/auth/form-toggle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/auth/form-toggle.tsx -------------------------------------------------------------------------------- /components/auth/social.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/auth/social.tsx -------------------------------------------------------------------------------- /components/form/login-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/form/login-form.tsx -------------------------------------------------------------------------------- /components/form/new-password-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/form/new-password-form.tsx -------------------------------------------------------------------------------- /components/form/profile-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/form/profile-form.tsx -------------------------------------------------------------------------------- /components/form/register-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/form/register-form.tsx -------------------------------------------------------------------------------- /components/form/resend-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/form/resend-form.tsx -------------------------------------------------------------------------------- /components/form/reset-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/form/reset-form.tsx -------------------------------------------------------------------------------- /components/form/two-factor-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/form/two-factor-form.tsx -------------------------------------------------------------------------------- /components/form/verify-token-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/form/verify-token-form.tsx -------------------------------------------------------------------------------- /components/ui/avatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/ui/avatar.tsx -------------------------------------------------------------------------------- /components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/ui/button.tsx -------------------------------------------------------------------------------- /components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/ui/card.tsx -------------------------------------------------------------------------------- /components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/ui/form.tsx -------------------------------------------------------------------------------- /components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/ui/input.tsx -------------------------------------------------------------------------------- /components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/ui/label.tsx -------------------------------------------------------------------------------- /components/ui/separator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/ui/separator.tsx -------------------------------------------------------------------------------- /components/ui/sonner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/ui/sonner.tsx -------------------------------------------------------------------------------- /components/ui/switch.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/components/ui/switch.tsx -------------------------------------------------------------------------------- /lib/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/lib/auth.ts -------------------------------------------------------------------------------- /lib/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/lib/db.ts -------------------------------------------------------------------------------- /lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/lib/utils.ts -------------------------------------------------------------------------------- /middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/middleware.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/postcss.config.js -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /public/assets/email-verified.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/public/assets/email-verified.svg -------------------------------------------------------------------------------- /public/assets/error.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/public/assets/error.svg -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/routes.ts -------------------------------------------------------------------------------- /schemas/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/schemas/index.ts -------------------------------------------------------------------------------- /services/account.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/services/account.ts -------------------------------------------------------------------------------- /services/mail.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/services/mail.ts -------------------------------------------------------------------------------- /services/reset-password-token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/services/reset-password-token.ts -------------------------------------------------------------------------------- /services/two-factor-confirmation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/services/two-factor-confirmation.ts -------------------------------------------------------------------------------- /services/two-factor-token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/services/two-factor-token.ts -------------------------------------------------------------------------------- /services/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/services/user.ts -------------------------------------------------------------------------------- /services/verification-token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/services/verification-token.ts -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/styles/globals.css -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/types/index.ts -------------------------------------------------------------------------------- /types/next-auth.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zulmy-azhary/next-auth-boilerplate/HEAD/types/next-auth.d.ts --------------------------------------------------------------------------------