DD.WellWorkover.Cloud/AsbCloudApp/Services/IAuthService.cs

18 lines
521 B
C#
Raw Normal View History

using AsbCloudApp.Data;
using System.Security.Claims;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
public interface IAuthService
{
int ChangePassword(int idUser, string newPassword);
int ChangePassword(string userLogin, string newPassword);
2021-09-10 11:28:57 +05:00
Task<UserTokenDto> LoginAsync(string login,
string password, CancellationToken token = default);
string Refresh(ClaimsPrincipal user);
int Register(UserDto userDto);
}
}