Files
Cleanuparr/code/backend/Cleanuparr.Infrastructure/Features/Auth/ITotpService.cs
2026-02-15 13:15:06 +02:00

12 lines
376 B
C#

namespace Cleanuparr.Infrastructure.Features.Auth;
public interface ITotpService
{
string GenerateSecret();
string GetQrCodeUri(string secret, string username);
bool ValidateCode(string secret, string code);
List<string> GenerateRecoveryCodes(int count = 10);
string HashRecoveryCode(string code);
bool VerifyRecoveryCode(string code, string hash);
}