DEV Community

Discussion on: Magic Link Authentication and Route Controls with Supabase and Next.js

Collapse
 
n1ghtmare profile image
Dimitar Dimitrov • Edited

Wouldn't including getServerSideProps on all protected pages essentially make the whole site SSR?

This approach has no flashing pages that you normally get when you use client side auth context/providers and checks, so I actually prefer it from that point of view.

Is there some sort of approach that has best of both worlds?

By the way your articles and youtube videos are the best and helped me tremendously!