adrianhajdin / project_next_14_ai_prompt_sharing

Next.js recently became the official React framework as outlined in React docs. In this course, you'll learn the most important Next.js concepts and how they fit into the React ecosystem. Finally, you'll put your skills to the test by building a modern full-stack Next 14 application.
https://www.jsmastery.pro/ultimate-next-course
2.9k stars 426 forks source link

How are certain routes protected? #12

Closed jacobtt21 closed 1 year ago

jacobtt21 commented 1 year ago

I was wondering how are certain routes like /profile and /create-prompt are not visible unless the user is authenticated? I don't see a check to make sure a user is authenticated before rendering a page and was just curious.