In this extra section,
I wanna dive into authentication.
I wanna explore how we can add user authentication,
signup and signin and logout to a Next.js application.
In my React course, React: The Complete Guide,
I do show how to implement authentication with React apps.
And generally, since a Next app is still a React app,
it works as shown there, in case you followed that module.
But in case you didn't, in this module
I will also explain again how authentication works
and I will show how Next.js specifically
can help us with it.
We are going to learn how authentication works
in our Next.js application.
We are then also, of course,
going to implement authentication.
We are going to implement users signup and login,
and we are going to control page access
to make sure that only authenticated users
can reach certain pages and can perform certain actions.