using CalledIt.Domain.Dtos;

namespace CalledIt.Domain.Services;

public interface IRefreshTokenService
{
    Task<RefreshTokenIssueDto> IssueAsync(int userId, int lifetimeDays);

    Task<RefreshTokenRotationDto> RotateAsync(string rawToken, int lifetimeDays);

    Task RevokeAsync(string rawToken);

    Task RevokeAllForUserAsync(int userId);
}
