The main differences between client-side and server-side authentication, implemented in a simple Next.js application using both approaches.