15 lines
633 B
C#
15 lines
633 B
C#
// src/Webshop.Application/Services/Auth/IAuthService.cs
|
|
using System.Threading.Tasks;
|
|
using Webshop.Application.DTOs.Auth;
|
|
|
|
namespace Webshop.Application.Services.Auth
|
|
{
|
|
public interface IAuthService
|
|
{
|
|
Task<AuthResponseDto> RegisterUserAsync(RegisterRequestDto request);
|
|
Task<AuthResponseDto> LoginUserAsync(LoginRequestDto request);
|
|
Task<AuthResponseDto> LoginAdminAsync(LoginRequestDto request);
|
|
Task<(bool Success, string ErrorMessage)> ConfirmEmailAsync(string userId, string token);
|
|
Task<(bool Success, string ErrorMessage)> ResendEmailConfirmationAsync(string email);
|
|
}
|
|
} |