namespace Forge.Web.Auth;

using Forge.Core.Models;

public interface IAuthService
{
    Task<UserAccount?> ValidateCredentialsAsync(string? username, string? password);
    Task<UserAccount?> GetUserAsync(string username);
    Task<IReadOnlyList<UserAccount>> GetUsersAsync();
    Task<UserAccount> CreateUserAsync(string username, string password, string role);
    Task UpdatePasswordAsync(string username, string newPassword);
    Task EnsureConfiguredAdminAsync();
}
An unhandled error has occurred. Reload 🗙