mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-04-05 18:09:04 +00:00
25 lines
675 B
C#
25 lines
675 B
C#
using System.Runtime.InteropServices.JavaScript;
|
|
using Infrastructure.Repository.Auth;
|
|
|
|
namespace Service.Auth;
|
|
|
|
public record ConfirmationServiceReturn(DateTime confirmedAt, Guid userId);
|
|
|
|
public interface IConfirmationService
|
|
{
|
|
Task<ConfirmationServiceReturn> ConfirmUserAsync(string confirmationToken);
|
|
}
|
|
|
|
public class ConfirmationService(IAuthRepository authRepository)
|
|
: IConfirmationService
|
|
{
|
|
private readonly IAuthRepository _authRepository = authRepository;
|
|
|
|
public async Task<ConfirmationServiceReturn> ConfirmUserAsync(
|
|
string confirmationToken
|
|
)
|
|
{
|
|
return new ConfirmationServiceReturn(DateTime.Now, Guid.NewGuid());
|
|
}
|
|
}
|