SL
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.