React/JavaScript Authentication: Basic Access Control

Just tried out this tutorial. Followed the directions. However, I get errors when I click the ‘login’ as well as ‘make an external API request’ buttons?

I’m checking the code bases right now to see what the problem could be…