namespace TakeoutSaaS.Application.Identity.Abstractions;

/// <summary>
/// 登录限流器。
/// </summary>
public interface ILoginRateLimiter
{
    Task EnsureAllowedAsync(string key, CancellationToken cancellationToken = default);
    Task ResetAsync(string key, CancellationToken cancellationToken = default);
}
