Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Protect Routes that Require Authentication

Overview

You'll often need to protect certain routes in your application from unauthorized users. For instance, the /authenticated route would likely display private information that we don't want unauthorized (or logged-out) users to view.

Currently, the '/authenticated' route is accessible to any user, whether they are authenticated or not. This is likely not what you or your us...