On my Next.js project, I wanted to add some authentication. I decided to use Firebase for my user management and data store. What I needed: OAuth using Twitter client-side authentication Protected pages server-side authentication Assumptions: You ...

Markdown supported Β· ββ΅ to post
Songs Le
There's no server side auth present in this article btw. The one you mentioned at the last is only for validating apis. So, auth on nextjs pages still rendered on client side. Only solution as given by firebase auth is to use service-worker or to create cookies. Btw, very good article. It's a clean code.