Authentication with the Token

Limit the users' access to their own profiles so the users can only change their own profiles.

Authorization plays a vital role in constructing applications because it helps define what the user can do. We have a route to update the user, but there is a problem; anyone can update any user.

This section will implement a method that will require the user to be logged in to prevent unauthorized access.

Get hands-on with 1200+ tech skills courses.