Error: domain option is required

I’ve built a React app using create-react-app and have started implementing the authentication however I’m running into this error:

image

Here is my .env:
image

I have the following dependencies installed:

“auth0-js”: “^9.8.0”,
“auth0-lock”: “^11.10.0”,
“express”: “^4.16.3”,
“express-jwt”: “^5.3.1”,
“express-jwt-authz”: “^1.0.0”,
“jwks-rsa”: “^1.3.0”,
“npm-run-all”: “^4.1.3”,
“react”: “^16.9.0”,
“react-dom”: “^16.9.0”,
“react-router-dom”: “^4.3.1”,
“react-scripts”: “3.1.1”

I’m new to React, and Auth0 for that matter, and I cannot figure out for the life of me what the issue is. I’ve copied my domain and client ID in from my Auth0 account. What am I doing wrong???

Hey there @dcottreau, welcome to the Auth0 Community!

From the screenshots you shared nothing looks out of place or wrongly typed. I would recommend giving our React Quickstart a peek and see if it helps iron out any of the possible errors in implementation that may be going on. Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.