├── .eslintrc.json ├── .gitignore ├── README.md ├── components.json ├── next.config.js ├── package.json ├── postcss.config.js ├── public ├── next.svg └── vercel.svg ├── sample-env ├── src ├── app │ ├── api │ │ └── users │ │ │ ├── forgotpassword │ │ │ └── route.ts │ │ │ ├── login │ │ │ └── route.ts │ │ │ ├── logout │ │ │ └── route.js │ │ │ ├── me │ │ │ └── route.ts │ │ │ ├── passwordreset │ │ │ └── route.ts │ │ │ ├── signup │ │ │ └── route.ts │ │ │ └── verifyemail │ │ │ └── route.ts │ ├── favicon.ico │ ├── forgotpassword │ │ └── page.tsx │ ├── globals.css │ ├── layout.tsx │ ├── login │ │ └── page.tsx │ ├── page.tsx │ ├── passwordreset │ │ └── page.tsx │ ├── profile │ │ ├── [id] │ │ │ └── page.tsx │ │ └── page.tsx │ ├── signup │ │ └── page.tsx │ └── verifyemail │ │ └── page.tsx ├── components │ ├── theme-provider.tsx │ └── ui │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── hover-card.tsx │ │ ├── input.tsx │ │ └── label.tsx ├── dbConfig │ └── dbConfig.ts ├── helpers │ ├── getDataFromToken.ts │ └── mailer.ts ├── lib │ └── utils.ts ├── middleware.ts └── models │ └── userModel.js ├── tailwind.config.js └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/README.md -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/components.json -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /sample-env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/sample-env -------------------------------------------------------------------------------- /src/app/api/users/forgotpassword/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/api/users/forgotpassword/route.ts -------------------------------------------------------------------------------- /src/app/api/users/login/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/api/users/login/route.ts -------------------------------------------------------------------------------- /src/app/api/users/logout/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/api/users/logout/route.js -------------------------------------------------------------------------------- /src/app/api/users/me/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/api/users/me/route.ts -------------------------------------------------------------------------------- /src/app/api/users/passwordreset/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/api/users/passwordreset/route.ts -------------------------------------------------------------------------------- /src/app/api/users/signup/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/api/users/signup/route.ts -------------------------------------------------------------------------------- /src/app/api/users/verifyemail/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/api/users/verifyemail/route.ts -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/forgotpassword/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/forgotpassword/page.tsx -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/login/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/login/page.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/app/passwordreset/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/passwordreset/page.tsx -------------------------------------------------------------------------------- /src/app/profile/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/profile/[id]/page.tsx -------------------------------------------------------------------------------- /src/app/profile/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/profile/page.tsx -------------------------------------------------------------------------------- /src/app/signup/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/signup/page.tsx -------------------------------------------------------------------------------- /src/app/verifyemail/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/app/verifyemail/page.tsx -------------------------------------------------------------------------------- /src/components/theme-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/components/theme-provider.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/components/ui/card.tsx -------------------------------------------------------------------------------- /src/components/ui/hover-card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/components/ui/hover-card.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/dbConfig/dbConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/dbConfig/dbConfig.ts -------------------------------------------------------------------------------- /src/helpers/getDataFromToken.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/helpers/getDataFromToken.ts -------------------------------------------------------------------------------- /src/helpers/mailer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/helpers/mailer.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/middleware.ts -------------------------------------------------------------------------------- /src/models/userModel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/src/models/userModel.js -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samabid/authnextjs/HEAD/tsconfig.json --------------------------------------------------------------------------------