using StellaOps.Authority.Storage.Mongo.Documents;

namespace StellaOps.Authority.Storage.Mongo.Stores;

public interface IAuthorityLoginAttemptStore
{
    ValueTask InsertAsync(AuthorityLoginAttemptDocument document, CancellationToken cancellationToken);

    ValueTask<IReadOnlyList<AuthorityLoginAttemptDocument>> ListRecentAsync(string subjectId, int limit, CancellationToken cancellationToken);
}
