feat(EnvelopeSmsService): SendTotpAsync-Methode hinzufügen, um totp unter Berücksichtigung der Ablaufzeit zu senden.

This commit is contained in:
Developer 02
2025-01-31 14:59:39 +01:00
parent aa918d875d
commit 772d510705
6 changed files with 76 additions and 41 deletions

View File

@@ -0,0 +1,15 @@
using EnvelopeGenerator.Application.DTOs.EnvelopeReceiver;
using EnvelopeGenerator.Application.DTOs.Messaging;
namespace EnvelopeGenerator.Application.Contracts;
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);
}

View File

@@ -1,5 +0,0 @@
namespace EnvelopeGenerator.Application.Contracts;
public interface IEnvelopeSmsService
{
}