- Full-Stack React Projects
- Shama Hoque
- 48字
- 2021-06-25 21:45:11
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:
