Trying to fetch a single user

Next, we will try to access a protected API without signing in first. A GET request to read any one of the users will return a 401 Unauthorized, such as in the following example, a GET request to /api/users/5a1c7ead1a692aa19c3e7b33 returns a 401:

Get Full-Stack React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.