Though many of the concepts in this course are still relevant, overall this course does not reflect our current course standards.

Check out a free preview of the full Secure Authentication for Web Apps & APIs Using JWTs course:
The "Challenge: Protecting Routes" Lesson is part of the full, Secure Authentication for Web Apps & APIs Using JWTs course featured in this preview video. Here's what you'd learn in this lesson:

In this challenge, you will verify the user’s JWT is unexpired before the transition to the instructors route occurs. You will also verify the user has an admin scope when navigating to the instructor/new route. The code for starting this challenge is on the 05-protecting-routes branch.

Get Unlimited Access Now