namespace ModelContextProtocol.Authentication;
///
/// Allows the client to cache access tokens beyond the lifetime of the transport.
///
public interface ITokenCache
{
///
/// Cache the token. After a new access token is acquired, this method is invoked to store it.
///
ValueTask StoreTokensAsync(TokenContainer tokens, CancellationToken cancellationToken);
///
/// Get the cached token. This method is invoked for every request.
///
ValueTask GetTokensAsync(CancellationToken cancellationToken);
}