26 lines
891 B
C#
26 lines
891 B
C#
using EnvelopeGenerator.Application.Common.Dto.EnvelopeReceiver;
|
|
using EnvelopeGenerator.Application.Common.Dto.Messaging;
|
|
|
|
namespace EnvelopeGenerator.Application.Interfaces.Services;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public interface IEnvelopeSmsHandler
|
|
{
|
|
/// <summary>
|
|
/// If expiration is passed then, sends sms and returns smsResponse and up-to-date expiration; otherwise send expiration.
|
|
/// </summary>
|
|
/// <param name="er_secret"></param>
|
|
/// <param name="cToken"></param>
|
|
/// <returns></returns>
|
|
Task<(SmsResponse? SmsResponse, DateTime Expiration)> SendTotpAsync(EnvelopeReceiverSecretDto er_secret, CancellationToken cToken = default);
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="totpCode"></param>
|
|
/// <param name="secretKey"></param>
|
|
/// <returns></returns>
|
|
bool VerifyTotp(string totpCode, string secretKey);
|
|
} |