3
2 Comments

Next.js Firebase Auth starter kit?

Hey there makers 👋🏼.

I am about to start a new SaaS project with subscriptions, users, etc.

My stack is going to be;

  • Next.js FE
  • PostgreSQL
  • TypeORM / Node.js BE
  • Firebase Auth to handle the auth on the FE and the calls in the BE

I'd love to see if anyone has gotten a great starter kit to handle the FE part with Next.js and Firebase Auth.

I tried https://github.com/colinhacks/next-firebase-ssr a while back but I found it a bit flaky (sometimes the token was expired when refreshing the page, kicking the user back to the login screen).

Anyone got a good lead I can chase?

posted to Icon for group Developers
Developers
on February 3, 2021
  1. 1

    Use https://blitzjs.com/ for Next.js with Auth & Postgres support. It will save ton of time for sure. Although it does not support firebase, you can use this awesome hook. Using just one page, Firebase Auth can be handled easily. https://usehooks.com/useAuth/

    1. 2

      Hey man! It looks fantastic–but I feel like there's way too much stuff happening there that I am not on top of. I have actually decided to start creating a boilerplate to handle the basics I need.

      I'll share the tutorials once it's ready on my Medium publication.

Trending on Indie Hackers
7 years in agency, 200+ B2B campaigns, now building Outbound Glow User Avatar 102 comments 11 Weeks Ago I Had 0 Users. Now VIDI Has Reviewed $10M+ in Contracts - and I’m Opening a Small SAFE Round User Avatar 47 comments The "Book a Demo" Button Was Killing My Pipeline. Here's What I Replaced It With. User Avatar 41 comments I built a desktop app to move files between cloud providers without subscriptions or CLI User Avatar 24 comments How I built an AI workflow with preview, approval, and monitoring User Avatar 21 comments My AI bill was bleeding me dry, so I built a "Smart Meter" for LLMs User Avatar 19 comments