Auth methods

This commit is contained in:
Veljko Tosic
2026-02-12 19:47:38 +01:00
parent 9cfc23a5d5
commit 95d5f9da87
2 changed files with 5 additions and 1 deletions

View File

@@ -5,5 +5,6 @@ namespace AipsCore.Domain.Models.User.External;
public interface IUserRepository : IAbstractRepository<User, UserId>
{
Task SignUpWithPasswordAsync(User user, string password, CancellationToken cancellationToken = default);
Task<LoginResult> LoginWithEmailAndPasswordAsync(string email, string password, CancellationToken cancellationToken = default);
}

View File

@@ -0,0 +1,3 @@
namespace AipsCore.Domain.Models.User.External;
public record LoginResult(User User, IList<string> Roles);