├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── LICENSE ├── README.md ├── bun.lockb ├── components.json ├── next.config.js ├── package.json ├── postcss.config.js ├── prisma └── schema.prisma ├── public ├── favicon.svg └── images │ ├── auth │ ├── github.svg │ └── google.svg │ ├── error.svg │ └── success.svg ├── src ├── actions │ ├── login.ts │ └── register.ts ├── app │ ├── (protected) │ │ └── settings │ │ │ └── page.tsx │ ├── api │ │ └── auth │ │ │ └── [...nextAuth] │ │ │ └── route.ts │ ├── auth │ │ ├── layout.tsx │ │ ├── login │ │ │ └── page.tsx │ │ └── register │ │ │ └── page.tsx │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── auth.config.ts ├── auth.ts ├── components │ ├── auth │ │ ├── back-button.tsx │ │ ├── card-wrapper.tsx │ │ ├── header.tsx │ │ ├── login-button.tsx │ │ ├── login-form.tsx │ │ ├── register-form.tsx │ │ └── social.tsx │ ├── form-error.tsx │ ├── form-success.tsx │ └── ui │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── dialog.tsx │ │ ├── form.tsx │ │ ├── input.tsx │ │ └── label.tsx ├── db │ └── types.ts ├── lib │ └── utils.ts ├── middleware.ts ├── routes.ts ├── schema │ └── index.ts └── server │ ├── database.ts │ └── service │ └── user.ts ├── tailwind.config.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/README.md -------------------------------------------------------------------------------- /bun.lockb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/bun.lockb -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/components.json -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/postcss.config.js -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /public/favicon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/public/favicon.svg -------------------------------------------------------------------------------- /public/images/auth/github.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/public/images/auth/github.svg -------------------------------------------------------------------------------- /public/images/auth/google.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/public/images/auth/google.svg -------------------------------------------------------------------------------- /public/images/error.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/public/images/error.svg -------------------------------------------------------------------------------- /public/images/success.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/public/images/success.svg -------------------------------------------------------------------------------- /src/actions/login.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/actions/login.ts -------------------------------------------------------------------------------- /src/actions/register.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/actions/register.ts -------------------------------------------------------------------------------- /src/app/(protected)/settings/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/app/(protected)/settings/page.tsx -------------------------------------------------------------------------------- /src/app/api/auth/[...nextAuth]/route.ts: -------------------------------------------------------------------------------- 1 | export { GET, POST } from "~/auth"; 2 | -------------------------------------------------------------------------------- /src/app/auth/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/app/auth/layout.tsx -------------------------------------------------------------------------------- /src/app/auth/login/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/app/auth/login/page.tsx -------------------------------------------------------------------------------- /src/app/auth/register/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/app/auth/register/page.tsx -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/auth.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/auth.config.ts -------------------------------------------------------------------------------- /src/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/auth.ts -------------------------------------------------------------------------------- /src/components/auth/back-button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/auth/back-button.tsx -------------------------------------------------------------------------------- /src/components/auth/card-wrapper.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/auth/card-wrapper.tsx -------------------------------------------------------------------------------- /src/components/auth/header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/auth/header.tsx -------------------------------------------------------------------------------- /src/components/auth/login-button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/auth/login-button.tsx -------------------------------------------------------------------------------- /src/components/auth/login-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/auth/login-form.tsx -------------------------------------------------------------------------------- /src/components/auth/register-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/auth/register-form.tsx -------------------------------------------------------------------------------- /src/components/auth/social.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/auth/social.tsx -------------------------------------------------------------------------------- /src/components/form-error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/form-error.tsx -------------------------------------------------------------------------------- /src/components/form-success.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/form-success.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/ui/card.tsx -------------------------------------------------------------------------------- /src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/ui/form.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/db/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/db/types.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/middleware.ts -------------------------------------------------------------------------------- /src/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/routes.ts -------------------------------------------------------------------------------- /src/schema/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/schema/index.ts -------------------------------------------------------------------------------- /src/server/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/server/database.ts -------------------------------------------------------------------------------- /src/server/service/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/src/server/service/user.ts -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ShubhamkumarAnand/next-auth/HEAD/tsconfig.json --------------------------------------------------------------------------------