Create a Simple and Secure Node Express App

I’ve followed this and everything works great, thanks for the tutorial! However, once I put this into production, I’m stuck in a redirect loop between Auth0 and my page because there is no user instance in my requests, although logs show a successful login. Its because in production, we start up 3 containers with the frontend app. We need the resilience and backups. The load balancer distributes the requests among them (in dev, we only have 1 up). If we take prod down to 1 container, it works fine. It appears that the node server needs to be the same one that initiated the login, despite it being on the same url. Is there a way inside Auth0 around it or it does not support multiple server instances?

1 Like