I had some problems but I was authenticating against AzureB2C, I'm not quite sure if could help you but I would try this:
https://github.com/AzureAD/microsoft-identity-web/issues/1959