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

Well done!

You have completed REST API Authentication with Express!

Instruction

Authenticate the User

Now that you're getting the user's key and secret from the request, you can authenticate the user. To be safe, start by adding a conditional statement that checks whether the user's credentials were successfully parsed from the Authorization header. Parse User Credentials from the Authorization Header In middleware/auth-user.js, add an if statement that checks if the user's credentials are ...