Hi Microsoft Azure Team,
I have an .NET Core 2 solution with 2 Projects. 1. SPA 2. Web API (Both will be hosted into Azure Web Apps later)
I am using Azure AD B2C with MSAL.js to login to the SPA and call the authenticated endpoints in the Web API project.
I would be converting the SPA to a Progressive Web App later.
As per the documentation, after the user logs in to the SPA, acquireTokenSilent can be used for making subsequent calls to the Authenticated endpoints.
I am able to login to the SPA, and use acquireTokenSilent to get the access token and able to call my Web API endpoints in the Web API project.
My problem is the acquireTokenSilent is taking 4 - 5 seconds (from my local development machine, js are not bundled yet) to get the access token.
I will be testing after deploying these both as Azure Websites (with JS bundled) at a later stage.
Will I face this performance lag after bundling the JS files and deploying in Azure?
Kindly advice for performance improvement, since this is making my app very slow.