<PackageReference Include="Microsoft.Identity.Client" Version="4.83.3" />

Microsoft.Identity.Client.Cache.ITokenCacheAccessor

int EntryCount { get; }

void Clear(ILoggerAdapter requestlogger = null)

List<MsalAccessTokenCacheItem> GetAllAccessTokens(string optionalPartitionKey = null, ILoggerAdapter requestlogger = null)

Returns all access tokens from the underlying cache collection. If optionalPartitionKey is specified, returns access tokens from that partition only.

List<MsalAccountCacheItem> GetAllAccounts(string optionalPartitionKey = null, ILoggerAdapter requestlogger = null)

Returns all accounts from the underlying cache collection. If optionalPartitionKey is specified, returns accounts from that partition only.

List<MsalIdTokenCacheItem> GetAllIdTokens(string optionalPartitionKey = null, ILoggerAdapter requestlogger = null)

Returns all ID tokens from the underlying cache collection. If optionalPartitionKey is specified, returns ID tokens from that partition only.

List<MsalRefreshTokenCacheItem> GetAllRefreshTokens(string optionalPartitionKey = null, ILoggerAdapter requestlogger = null)

Returns all refresh tokens from the underlying cache collection. If optionalPartitionKey is specified, returns refresh tokens from that partition only.