Freigeben über


IClientApplicationBase.UserTokenCache Property

Definition

User token cache which holds ID tokens, access tokens, and refresh tokens for accounts. It's used and updated silently if needed when calling AcquireTokenSilent(IEnumerable<String>, IAccount) It is updated by each acquire token method, with the exception of AcquireTokenForClient(IEnumerable<String>) which only uses the application cache (see AppTokenCache).

public Microsoft.Identity.Client.ITokenCache UserTokenCache { get; }
member this.UserTokenCache : Microsoft.Identity.Client.ITokenCache
Public ReadOnly Property UserTokenCache As ITokenCache

Property Value

Remarks

On .NET Framework and .NET Core you can also customize the token cache serialization. See https://aka.ms/msal-net-token-cache-serialization. This is taken care of by MSAL.NET on mobile platforms. It is recommended to use token cache serialization for web site and web api scenarios.

Applies to