23 lines
661 B
C#
23 lines
661 B
C#
using System.Threading.Tasks;
|
|
using Wino.Core.Domain.Entities.Shared;
|
|
using Wino.Core.Domain.Enums;
|
|
using Wino.Core.Services;
|
|
|
|
namespace Wino.Core.Authenticators.Base
|
|
{
|
|
public abstract class BaseAuthenticator
|
|
{
|
|
public abstract MailProviderType ProviderType { get; }
|
|
|
|
protected ITokenService TokenService { get; }
|
|
|
|
protected BaseAuthenticator(ITokenService tokenService)
|
|
{
|
|
TokenService = tokenService;
|
|
}
|
|
|
|
internal Task SaveTokenInternalAsync(MailAccount account, TokenInformation tokenInformation)
|
|
=> TokenService.SaveTokenInformationAsync(account.Id, tokenInformation);
|
|
}
|
|
}
|