Where I’m At
I am able to set up a React webapp that uses auth0 to authenticate. Yay! This webapp is running locally at localhost:8000, and has a route “/callback” to be called by auth0 after the user logs in.
So, in my Auth0 dashboard for this application I entered “http://localhost:8000” in the box for “Allowed Callback URLs”, “Allowed Web Origins”, and “Allowed Logout URLs”.
When I login the route at “localhost:8000/callback” does get called! Yay!
Ok, now I have a separate nodejs backend server running at “localhost:3000” (notice the port 3000). I would like this server to be pinged at “localhost:3000/callback” and have the user redirected back to the webpage at “localhost:8000/callback”.
When I try to enter “http://localhost:3000/callback,http://localhost:8000/callback” in for any combination of the three fields in the auth0 dashboard my server side never gets called. I set up both a GET and POST route and “localhost:3000/callback” and can hit them fine from Postman, but for some reason they never get hit by auth0.
Can someone please help me understand what is the correct way to do what I’m trying to do?