Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Next.js 13 Firebase auth boilerplate with email/Google login, forgot password, protected routes, and Tailwind CSS.

A full-stack Next.js TypeScript template focused on functionality over UI, featuring Zustand, TanStack Query, and ESLint 9 support.
Next-Fire-Auth is a Next.js 13 boilerplate that wires up Firebase authentication end-to-end, giving you login, signup, forgot-password, and protected-route pages out of the box. It focuses on Server Components and the new /app/ routing directory, so you can clone it and start building features instead of auth plumbing.
Next-Fire-Auth is an open-source starter template for Next.js 13 applications that need Firebase authentication. It takes your Firebase project credentials (via a .env.local file) and produces a complete auth flow: email/password sign-in, Google sign-in, account creation, forgot-password email, and a profile page that requires authentication. The template is built with React 18, TypeScript, Tailwind CSS v3, and Firebase v9's modular SDK, and uses react-firebase-hooks for reactive auth state. It was published by GitHub user hrushikedar33 and includes a live demo at next-fire-auth.vercel.app.
/app/ directory, following the latest Server Components and file-based routing conventions./style/globals.css./config/firebase.ts, and a reusable loading spinner component is at /components/Loading.tsx.yarn, configure Firebase keys, and have login/registration ready while you build the core product.react-firebase-hooks.After cloning https://github.com/hrushikedar33/next-fire-auth into your project folder, install dependencies with yarn (or npm i after removing yarn.lock). Then create a project in the Firebase console, enable Email/password and Google sign-in methods, and copy your firebaseConfig values into a new .env.local file using the NEXT_PUBLIC_ keys shown in the quick-start. Running yarn dev or npm run dev starts the app with all auth pages reachable from /.
Yes. The template is published publicly on GitHub under the next-fire-auth repository, so you can clone, modify, and deploy it for your own projects at no cost.
Yes. Google authentication is one of the two enabled providers in the template. You need to enable it in the Firebase console under Authentication > Sign-in method for it to appear.
The template is built on Next.js 13 with the App Router (/app/ directory) and emphasizes Server Components. It also uses React 18 and TypeScript.
Create a .env.local file in the project root with NEXT_PUBLIC_API_KEY, NEXT_PUBLIC_AUTH_DOMAIN, NEXT_PUBLIC_PROJECT_ID, NEXT_PUBLIC_STORAGE_BUCKET, NEXT_PUBLIC_MESSAGING_SENDER_ID, and NEXT_PUBLIC_APP_ID — each filled with matching values from the Firebase project's web app config.
The template covers authentication only; it doesn't include database, storage, or payment integrations. Also, the demo site uses the credentials shown in the README ([email protected] / test@12345) for testing.