using System.Threading;
using System.Threading.Tasks;
namespace Kavita.API.Services;
public interface IAuthKeyService
{
Task UpdateLastAccessedAsync(string authKey, CancellationToken ct = default);
///
/// Invalidates the cached authentication data for a specific auth key.
/// Call this when a key is rotated or deleted.
///
/// The actual key value (not the ID)
/// Cancellation token
Task InvalidateAsync(string keyValue, CancellationToken cancellationToken = default);
string CreateCacheKey(string keyValue);
}