14 lines
617 B
C#
14 lines
617 B
C#
using AuthHex.Models;
|
|
|
|
namespace AuthHex.Interfaces
|
|
{
|
|
public interface IRecoveryManagerRepository
|
|
{
|
|
Task<Recovery> AddRecoveryAsync(Recovery recovery, CancellationToken ct = default);
|
|
Task<Recovery?> GetRecoveryByTokenHashAsync(string tokenHash, CancellationToken ct = default);
|
|
Task<Recovery?> GetRecoveryByReferenceNumAsync(string referenceNum, CancellationToken ct = default);
|
|
Task UpdateRecoveryAsync(Recovery recovery, CancellationToken ct = default);
|
|
Task<List<Recovery>> GetPendingRecoveriesByUserIdAsync(Guid userId, CancellationToken ct = default);
|
|
}
|
|
}
|