mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-02-19 23:38:01 -05:00
12 lines
376 B
C#
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);
|
|
}
|