Auth0 Home Blog Docs

Work with React CRA

Hi

follow https://auth0.com/docs/quickstart/spa/react

does not work for me and not sure where to debug
https://uptimai-dashboard.netlify.com/

Login button redirect to
https://uptimai-dashboard.netlify.com/authorize?client_id=iS5oRqGaI4ZHiAiS1RwDjvYg3s9y0nWF&redirect_uri=https%3A%2F%2Fuptimai-dashboard.netlify.com&scope=openid%20profile%20email&response_type=code&response_mode=query&state=TUx%2BYWtBaEc4elpxQ2daLS1WUExwRExxZ1JfXzZxRkhkb0dPbWt0LUZFaw%3D%3D&nonce=ivJympBh18pg4v96j0JIoSH7OJRDHU66m2Vh9qmK958&code_challenge=H7AEKn6T3pdFvPTJbaPcBzn-fyIgeG5A31Wgwr3Q9go&code_challenge_method=S256&auth0Client=eyJuYW1lIjoiYXV0aDAtc3BhLWpzIiwidmVyc2lvbiI6IjEuMS4wIn0%3D

But nothing happen, who should handle this route?

Any hint will be highly appriciated
Muly

Auth0 is supposed to handle this route.

You need to put the domain of your Auth0 tenant in the auth_config.json file, not your application domain.

So it should be something like <yourtenant>.auth0.com (not uptimai-dashboard.netlify.com)

{
  "domain": "<yourtenant>.auth0.com",
  "clientId": "iS5oRqGaI4ZHiAiS1RwDjvYg3s9y0nWF" 
} 
2 Likes

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