[Feature Request] How to handle consent bundles?
Is your feature request related to a problem? Please describe. After a acquireTokenSilent fails, when calling acquireTokenSilent again, it does not call the token endpoint. It just returns a cached error message. This will only get resolved if "successfully" calling acquireTokenInteractive
This creates a poor experience on handling bundle consents. Developers have to create an entire different process/code to "pre-consent" their clients and APIs. When it is possible to allow the client to perform bundle consent and wait until the servicePrincipals are provisioned with the permissions, before a refresh token flow can be successful.
Describe the solution you'd like Have an option to force MSAL to call token endpoint again with acquireTokenSilent after a failed attempt and without having to first call acquireTokenInteractive.
This could be clear error state or a force method
Describe alternatives you've considered Add a ~10 second delay (risk as this might take longer) before calling acquireTokenSilent
Additional context We should implement this in all MSAL SDKs across the various platforms/languages
Could you give more details about "bundle consents"?