This is an example of how to authenticate with an Azure AD using MSAL.js.
Replace the values in appsettings.json and run dotnet -p AzureAd.Bolero.Server in order to try it out.
Pro tip: Look in the browsers developer console in order to see what happens.
Thanks to kasperhj for providing https://github.com/kasperhj/elmish-msal-demo which I have used to create this demo.