Auth methods
This commit is contained in:
@@ -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);
|
||||
}
|
||||
3
dotnet/AipsCore/Domain/Models/User/External/LoginResult.cs
vendored
Normal file
3
dotnet/AipsCore/Domain/Models/User/External/LoginResult.cs
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
namespace AipsCore.Domain.Models.User.External;
|
||||
|
||||
public record LoginResult(User User, IList<string> Roles);
|
||||
Reference in New Issue
Block a user