React/JavaScript Authentication: Basic Access Control

This code sample demonstrates how to implement authentication in a React Single-Page Application (SPA) using the Auth0 React SDK.

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…

Hey @dan-auth0 !

Would you be able to help us with that? Thanks!

I updated the .env files with some actual data, and the code works for me now.

So, just need to update the tutorial to update the .env file - everything else seems OK. I’ll touch base if other issues.

1 Like

That’s great. Thanks for your feedback!