├── .eslintrc.json ├── .gitignore ├── README.md ├── components └── Navbar.tsx ├── global.d.ts ├── lib ├── dbConnect.ts └── mongodb.ts ├── model └── User.ts ├── next-env.d.ts ├── next.config.js ├── package.json ├── pages ├── _app.tsx ├── api │ ├── auth │ │ └── [...nextauth].ts │ ├── hello.ts │ └── register.ts ├── auth.tsx ├── index.tsx └── profile.tsx ├── public ├── NextAuth_tutorial.png ├── blurry-gradient-haikei.svg ├── favicon.ico └── vercel.svg └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/README.md -------------------------------------------------------------------------------- /components/Navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/components/Navbar.tsx -------------------------------------------------------------------------------- /global.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/global.d.ts -------------------------------------------------------------------------------- /lib/dbConnect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/lib/dbConnect.ts -------------------------------------------------------------------------------- /lib/mongodb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/lib/mongodb.ts -------------------------------------------------------------------------------- /model/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/model/User.ts -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/pages/_app.tsx -------------------------------------------------------------------------------- /pages/api/auth/[...nextauth].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/pages/api/auth/[...nextauth].ts -------------------------------------------------------------------------------- /pages/api/hello.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/pages/api/hello.ts -------------------------------------------------------------------------------- /pages/api/register.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/pages/api/register.ts -------------------------------------------------------------------------------- /pages/auth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/pages/auth.tsx -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /pages/profile.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/pages/profile.tsx -------------------------------------------------------------------------------- /public/NextAuth_tutorial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/public/NextAuth_tutorial.png -------------------------------------------------------------------------------- /public/blurry-gradient-haikei.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/public/blurry-gradient-haikei.svg -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Am4teur/nextauth-yt/HEAD/tsconfig.json --------------------------------------------------------------------------------