├── .env.example ├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── README.md ├── app ├── api │ ├── auth │ │ └── [...nextauth] │ │ │ └── route.js │ └── hello │ │ └── route.js ├── components │ ├── Button.jsx │ ├── Footer.jsx │ ├── GoogleSignInButton.jsx │ ├── Header.jsx │ ├── Provider.jsx │ ├── SignInButton.jsx │ └── TextField.jsx ├── favicon.ico ├── globals.css ├── layout.jsx ├── page.jsx ├── profile │ └── page.jsx ├── protected │ ├── client │ │ └── page.jsx │ └── server │ │ └── page.jsx └── signin │ └── page.jsx ├── jsconfig.json ├── next.config.js ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── public ├── next.svg └── vercel.svg └── tailwind.config.js /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/README.md -------------------------------------------------------------------------------- /app/api/auth/[...nextauth]/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/api/auth/[...nextauth]/route.js -------------------------------------------------------------------------------- /app/api/hello/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/api/hello/route.js -------------------------------------------------------------------------------- /app/components/Button.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/components/Button.jsx -------------------------------------------------------------------------------- /app/components/Footer.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/components/Footer.jsx -------------------------------------------------------------------------------- /app/components/GoogleSignInButton.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/components/GoogleSignInButton.jsx -------------------------------------------------------------------------------- /app/components/Header.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/components/Header.jsx -------------------------------------------------------------------------------- /app/components/Provider.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/components/Provider.jsx -------------------------------------------------------------------------------- /app/components/SignInButton.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/components/SignInButton.jsx -------------------------------------------------------------------------------- /app/components/TextField.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/components/TextField.jsx -------------------------------------------------------------------------------- /app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/favicon.ico -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/globals.css -------------------------------------------------------------------------------- /app/layout.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/layout.jsx -------------------------------------------------------------------------------- /app/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/page.jsx -------------------------------------------------------------------------------- /app/profile/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/profile/page.jsx -------------------------------------------------------------------------------- /app/protected/client/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/protected/client/page.jsx -------------------------------------------------------------------------------- /app/protected/server/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/protected/server/page.jsx -------------------------------------------------------------------------------- /app/signin/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/app/signin/page.jsx -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/jsconfig.json -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-auth-demo/HEAD/tailwind.config.js --------------------------------------------------------------------------------