Chapter 12: Managing Authentication and User Sessions
In the previous chapters, we've seen how to work with some of the fundamental Next.js features. We learned how to choose between rendering strategies and how those can influence SEO and performance. We also learned how to style our application using built-in and external styling methods and libraries, managing the application state, integrating with external APIs, and many other valuable things.
Starting with this chapter, we will begin to learn and develop real-world applications by combining the lessons learned in the past sections with industry-standard strategies to keep our applications secure, performant, and highly optimized in every aspect.
In this chapter, we will see how to manage user session and authentication, an essential part of every highly dynamic web application.
We will cover the following topics in detail:
- How to integrate our application with a custom authentication service
- How to...