Please follow the issue template below. Failure to do so will result in a delay in answering your question.
[email protected] or @azure/[email protected]@azure/[email protected]@azure/[email protected]@azure/[email protected]@azure/[email protected]How do I use forceRefresh: true in msal-angular config?
Skip cache option is available in msal. Ref
config pass inside MsalModule.forRoot({}) not accepting forceRefresh for me.
What is the best way to skipCache and use forceRefresh in config?
Thnx,
@hammerstrike Currently, forceRefresh can be used with direct calls to acquireTokenSilent in Angular. Unfortunately there is no way to pass forceRefresh from the configuration to the guard or interceptor. This is an enhancement we would like to make, so we will track this issue and update it when it has been added to the Angular library.
This is now possible in MSAL Angular v2: https://github.com/AzureAD/microsoft-authentication-library-for-js/releases/tag/msal-angular-v2.0.0-alpha.0
Closing.
Most helpful comment
@hammerstrike Currently,
forceRefreshcan be used with direct calls toacquireTokenSilentin Angular. Unfortunately there is no way to passforceRefreshfrom the configuration to the guard or interceptor. This is an enhancement we would like to make, so we will track this issue and update it when it has been added to the Angular library.