This is a Next.js project created to provide training in implementing authentication on the frontend
First, install dependencies withyarn
Then run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
This app contains a login screen on the home page, one other page (/secretstuff
) and one api route (/api/secret-route
).
The objective is to implement authentication with NextAuth.js and protect the page and api route