├── .eslintrc.json ├── .gitignore ├── README.md ├── components ├── form.tsx ├── signin.tsx └── signup.tsx ├── models ├── Token.ts └── User.ts ├── next.config.js ├── package.json ├── pages ├── _app.tsx ├── api │ ├── auth │ │ ├── [...nextauth].ts │ │ └── signup.ts │ └── reset-password.ts ├── index.tsx ├── profile.tsx └── reset-password │ ├── [token].tsx │ └── index.tsx ├── public ├── favicon.ico └── vercel.svg ├── styles ├── Home.module.css └── globals.css ├── tsconfig.json └── utils ├── db.ts ├── hash.ts └── nodemailer.ts /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/README.md -------------------------------------------------------------------------------- /components/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/components/form.tsx -------------------------------------------------------------------------------- /components/signin.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/components/signin.tsx -------------------------------------------------------------------------------- /components/signup.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/components/signup.tsx -------------------------------------------------------------------------------- /models/Token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/models/Token.ts -------------------------------------------------------------------------------- /models/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/models/User.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/pages/_app.tsx -------------------------------------------------------------------------------- /pages/api/auth/[...nextauth].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/pages/api/auth/[...nextauth].ts -------------------------------------------------------------------------------- /pages/api/auth/signup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/pages/api/auth/signup.ts -------------------------------------------------------------------------------- /pages/api/reset-password.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/pages/api/reset-password.ts -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /pages/profile.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/pages/profile.tsx -------------------------------------------------------------------------------- /pages/reset-password/[token].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/pages/reset-password/[token].tsx -------------------------------------------------------------------------------- /pages/reset-password/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/pages/reset-password/index.tsx -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /styles/Home.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/styles/Home.module.css -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/styles/globals.css -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/tsconfig.json -------------------------------------------------------------------------------- /utils/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/utils/db.ts -------------------------------------------------------------------------------- /utils/hash.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/utils/hash.ts -------------------------------------------------------------------------------- /utils/nodemailer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AhmedAlqurafi/next-auth-credentials/HEAD/utils/nodemailer.ts --------------------------------------------------------------------------------