├── .env.sample ├── .eslintrc.json ├── .gitignore ├── README.md ├── next.config.mjs ├── package.json ├── postcss.config.js ├── public ├── next.svg └── vercel.svg ├── src ├── app │ ├── api │ │ └── users │ │ │ ├── login │ │ │ └── route.ts │ │ │ ├── logout │ │ │ └── route.ts │ │ │ ├── me │ │ │ └── route.ts │ │ │ ├── signup │ │ │ └── route.ts │ │ │ └── verifyemail │ │ │ └── route.ts │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ ├── login │ │ └── page.tsx │ ├── page.tsx │ └── signup │ │ └── page.tsx ├── dbConfig │ └── dbConfig.ts ├── helpers │ ├── getDataFromToken.ts │ └── mailer.ts └── models │ └── userModel.js ├── tailwind.config.ts └── tsconfig.json /.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/.env.sample -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/README.md -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/app/api/users/login/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/app/api/users/login/route.ts -------------------------------------------------------------------------------- /src/app/api/users/logout/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/app/api/users/logout/route.ts -------------------------------------------------------------------------------- /src/app/api/users/me/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/app/api/users/me/route.ts -------------------------------------------------------------------------------- /src/app/api/users/signup/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/app/api/users/signup/route.ts -------------------------------------------------------------------------------- /src/app/api/users/verifyemail/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/app/api/users/verifyemail/route.ts -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/login/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/app/login/page.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/app/signup/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/app/signup/page.tsx -------------------------------------------------------------------------------- /src/dbConfig/dbConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/dbConfig/dbConfig.ts -------------------------------------------------------------------------------- /src/helpers/getDataFromToken.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/helpers/getDataFromToken.ts -------------------------------------------------------------------------------- /src/helpers/mailer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/helpers/mailer.ts -------------------------------------------------------------------------------- /src/models/userModel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/src/models/userModel.js -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishalparmarr/nextjsauth/HEAD/tsconfig.json --------------------------------------------------------------------------------