Connecting auth0 with Azure Fc App and Storage Account App

Hello, what I have been trying to do is to connect the Fc App with auth0 - I have implemented the login and I can successfully retrieve the universal login screen, input my credentials and log in on Azure where the Fc App is hosted. However, on localhost, where I try to hook up the Storage Account living app I can clearly see on the network tab a 302 HTTP response towards the authorize endpoint of the tenant while on callback I get a 500.

What would be the preferred way to get around this?