Goals. Build a private user profile page that displays the signed-in user's information.
Restrict the page so that only the user can see their information and not that of other users. The page also offers the ability to edit some user information.
Create architecture and flows for the user profile page, write reusable code, and set up a form that makes it easy to add more inputs and update the database.
Plus, protect the client and server from unauthorized acccess.
Practice working with fullstack code flows, callback functions, the event object, state and lifecycle methods, conditional statements, client pages, server routes, HTTP requests, and updating MongoDB data.
While building these features, you work with the NextJS router to redirect users based on if they are signed out