MsalError.InternalCacheDisabled Field

Definition

What happened?

A cache-dependent API was called, but MSAL's internal token cache is disabled via DisableInternalCacheOptions. This can occur with APIs such as AcquireTokenSilent(IEnumerable<String>, IAccount) and AcquireTokenInLongRunningProcess(...).

Mitigation

Use an authentication flow that does not depend on MSAL's internal cache, such as AcquireTokenByRefreshToken(IEnumerable<String>, String) with the refresh token obtained from GetRefreshToken(AuthenticationResult), or use another interactive flow, as appropriate for your application.
public const string InternalCacheDisabled;
val mutable InternalCacheDisabled : string
Public Const InternalCacheDisabled As String 

Field Value

Applies to