20 lines
578 B
C#
20 lines
578 B
C#
using Project.Application.DTOs.TwoFactorAuth;
|
|
|
|
namespace Project.Application.Interfaces
|
|
{
|
|
public interface ITwoFactorAuthService
|
|
{
|
|
// GENERATE TWO FACTOR AUTH SETUP
|
|
public Task<TwoFactorSetupDto> GenerateSetupCodeAsync(string userEmail);
|
|
|
|
// VALIDATE OTP
|
|
public Task<bool> ValidateCodeAsync(string userEmail, string code);
|
|
|
|
//// SAVE SECRET KEY
|
|
//public Task SaveSecretKeyAsync(string userEmail, string userSecretKey);
|
|
|
|
// GET SECRET KEY
|
|
public Task<string> GetSecretKeyAsync(string userEmail);
|
|
}
|
|
}
|