namespace timetracker.Shared;

public interface IAuthService
{
    Task<User?> LoginAsync(string username, string password);
    Task<List<User>> GetAllUsersAsync();
    Task DeleteUserAsync(int userId);
    Task<string?> RenameUserAsync(int userId, string newUsername);
    Task<string?> ChangePasswordAsync(int userId, string currentPassword, string newPassword);
    Task<(User? User, string? Error)> RegisterAsync(string username, string password, string? honeypot = null);
}
