← Back to the beginning

THE FOUNDATION

A clear starting point.

A small, focused account experience built with Next.js, Firebase, TypeScript and Tailwind CSS. Here’s what’s included, and what to configure for your own project.

01

Every account has a journey.

Start with email registration or Google sign-in. Return to a session-aware workspace, edit your display name, request password recovery, and sign out. Forms include accessible labels, password visibility controls, validation and recoverable error states.

Google sign-in and email/password authentication must be enabled in your Firebase project. If a provider or domain isn’t configured, the app explains what happened.

02

Look around. Leave nothing behind.

The demo is an explicitly fictional identity, separate from Firebase authentication. It doesn’t create accounts, check passwords, send emails or read private account data. Profile edits use session storage and are cleared when you exit the demo. Don’t enter personal or sensitive details.

When browser storage is unavailable, you can still use the demo in memory; a page reload then clears your changes.

Try the account experience ↗
03

Connect your Firebase project.

  1. Create a Firebase web app and add its public web configuration through the documented environment variables.
  2. Enable Email/Password and Google in Firebase Authentication.
  3. Add your localhost and production domains to the authorized domains list.
  4. No Firestore database is needed: display names are stored on the Firebase Authentication account.
  5. Redeploy after changing public environment variables, then verify registration, recovery and profile access with a test account.

The hosted project’s original public Firebase configuration is retained as a fallback. Your own environment variables override it. The hosted email account flow and authorized production domain are configured. Enable your chosen providers when using a different Firebase project.

04

Know the boundary.

The route guard is a client-side interface guard. It is not server-side authorization. Firebase Authentication authorizes each user’s own display-name updates. This interface does not read or write Firestore documents. Before adding private server APIs, verify Firebase ID tokens or server session cookies on every protected endpoint.

For a production product, also configure your Firebase quotas, email templates, monitoring, email verification policy and abuse protection. Run the documented account-flow checks against your own Firebase project.

Source & deployment instructions ↗