Microsoft-authentication-library-for-js: How to use forceRefresh: true in msal-angular config

Created on 9 Jul 2020  路  2Comments  路  Source: AzureAD/microsoft-authentication-library-for-js

Please follow the issue template below. Failure to do so will result in a delay in answering your question.

Library

Description

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,

enhancement msal-angular

Most helpful comment

@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.

All 2 comments

@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.

Was this page helpful?
0 / 5 - 0 ratings