using SolutionErp.Domain.Identity;

namespace SolutionErp.Application.Common.Interfaces;

public interface IJwtTokenService
{
    Task<(string AccessToken, string RefreshToken, DateTime RefreshTokenExpiresAt)> GenerateTokensAsync(User user, IList<string> roles);
    Task<Guid?> ValidateRefreshTokenAsync(string userId, string refreshToken);
}
