Relative Content

Tag Archive for node.jstypescriptexpressauth0

Auth0 callback route – visible in requests but not executing related code

I have an express backend to which I added Auth0. The problem is that whatever I do, I cannot get the callback route to work. I see it in my network tab, I can get it logged through my middleware on the server, but whatever I put into this route it is not executing. For debugging, I added a redirection and a console.log to /callback route but literally nothing happens after login and the auth0 is just redirecting to the origin of the request (for example when localhost8000/). Below is a truncated version of my server.ts Any help would be greatly appreciated. I’m stuck on this for the 3rd day and I’m losing my mind here.