Microsoft.Identity.Client.TokenCache
Token cache storing access and refresh tokens for accounts
This class is used in the constructors of PublicClientApplication and ConfidentialClientApplication.
In the case of ConfidentialClientApplication, two instances are used, one for the user token cache, and one for the application
token cache (in the case of applications using the client credential flows).
namespace Microsoft.Identity.Client
{
public sealed class TokenCache : ITokenCacheInternal, ITokenCache, ITokenCacheSerializer
{
public TokenCache();
public void SetIosKeychainSecurityGroup(string securityGroup);
public void SetBeforeAccess(TokenCacheCallback beforeAccess);
public void SetAfterAccess(TokenCacheCallback afterAccess);
public void SetBeforeWrite(TokenCacheCallback beforeWrite);
public void SetBeforeAccessAsync(Func<TokenCacheNotificationArgs, Task> beforeAccess);
public void SetAfterAccessAsync(Func<TokenCacheNotificationArgs, Task> afterAccess);
public void SetBeforeWriteAsync(Func<TokenCacheNotificationArgs, Task> beforeWrite);
}
}