├── .eslintrc.json ├── .gitignore ├── README.md ├── env.example ├── environment.d.ts ├── next.config.mjs ├── package.json ├── postcss.config.js ├── public ├── next.svg └── vercel.svg ├── src ├── app │ ├── _components │ │ └── PageContent.tsx │ ├── api │ │ └── auth │ │ │ ├── sign-in │ │ │ └── route.ts │ │ │ └── sign-out │ │ │ └── route.ts │ ├── dashboard │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ ├── page.tsx │ └── sign-in │ │ └── page.tsx ├── lib │ ├── firebase │ │ ├── auth.ts │ │ ├── firebase-admin.ts │ │ └── firebase.ts │ └── helpers.ts └── types.ts ├── tailwind.config.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/README.md -------------------------------------------------------------------------------- /env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/env.example -------------------------------------------------------------------------------- /environment.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/environment.d.ts -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/app/_components/PageContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/src/app/_components/PageContent.tsx -------------------------------------------------------------------------------- /src/app/api/auth/sign-in/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/src/app/api/auth/sign-in/route.ts -------------------------------------------------------------------------------- /src/app/api/auth/sign-out/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/src/app/api/auth/sign-out/route.ts -------------------------------------------------------------------------------- /src/app/dashboard/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/src/app/dashboard/page.tsx -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- 1 | export default async function HomePage() { 2 | return null; 3 | } 4 | -------------------------------------------------------------------------------- /src/app/sign-in/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/src/app/sign-in/page.tsx -------------------------------------------------------------------------------- /src/lib/firebase/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/src/lib/firebase/auth.ts -------------------------------------------------------------------------------- /src/lib/firebase/firebase-admin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/src/lib/firebase/firebase-admin.ts -------------------------------------------------------------------------------- /src/lib/firebase/firebase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/src/lib/firebase/firebase.ts -------------------------------------------------------------------------------- /src/lib/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/src/lib/helpers.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/src/types.ts -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilgehan-biricik/nextjs-firebase-auth-demo/HEAD/tsconfig.json --------------------------------------------------------------------------------