| 12345678910111213141516171819202122 |
- namespace Diligent.WebAPI.Business.Services.Interfaces
- {
- public interface IAuthenticationService
- {
- Task<ServiceResponseDTO<AuthenticateResponseDto>> Authenticate(AuthenticateRequestDto model);
- Task<ServiceResponseDTO<AuthenticateResponseDto>> Authenticate(GoogleApiModel model);
-
- Task<RefreshTokenResultDto> RefreshTokenAsync(RefreshTokenRequestDto model);
-
-
- Task<RefreshToken?> GetRefreshTokenByUserId(int userId);
-
- Task UpdateRefreshToken(RefreshToken refreshToken);
-
- Task<ServiceResponseDTO<string>> DeleteRefreshToken(int userId);
-
- Task<ServiceResponseDTO<object>> GetForgotPasswordUrlAsync(string email);
-
- Task<ServiceResponseDTO<object>> PasswordResetAsync(string email, string code, string password);
- Task<ServiceResponseDTO<object>> Register(RegisterDTO model);
- }
- }
|