namespace ModelContextProtocol.Authentication; /// /// Caches the token in-memory within this instance. /// internal class InMemoryTokenCache : ITokenCache { private TokenContainer? _tokens; /// /// Cache the token. /// public ValueTask StoreTokensAsync(TokenContainer tokens, CancellationToken cancellationToken) { _tokens = tokens; return default; } /// /// Get the cached token. /// public ValueTask GetTokensAsync(CancellationToken cancellationToken) { return new ValueTask(_tokens); } }