udacity / cd12101-lesson-demos-and-exercise-starters-solutions

cd12101 Lesson Demos and Exercises Starter and Solution code
Other
1 stars 18 forks source link

Frontend application contains hardcoded service URLs instead of pulling from the environment variables #168

Open jungleBadger opened 10 months ago

jungleBadger commented 10 months ago

Summary

The boilerplate code and code instructions guides students to update the environment variables file, but the code utilizes hardcoded value for the Auth0 domain URL, causing an error to create and load groups.

Path

lesson-4-authentication/exercises/07-extract-user-id-solution/client

File

All files in the following search result:

https://github.com/search?q=repo%3Audacity%2Fcd12101-lesson-demos-and-exercise-starters-solutions+test-endpoint.auth0.com&type=code

Proposed solutions

Replace the hardcoded instances with the REACT_APP_AUTH0_DOMAIN environment variable value.