How to implement authentication for SSR pages & API routes in Next.js
Full-stack apps built with Next.js has three aspects of authentication: client-side authentication, server-side authentication, and API route authentication. I have discussed client-side authentication in a previous post. In this post, I will be discussing Server-side & API routes authentication in NextAuth.js. How does server-side authentication work? The browser sends a request with a user session […]
How to implement authentication for SSR pages & API routes in Next.js Read More »