17 lines
404 B
C#
17 lines
404 B
C#
using Project.Domain.Entities;
|
|
|
|
namespace Project.Infrastructure.Interfaces
|
|
{
|
|
public interface ITwoFactorAuthRepository
|
|
{
|
|
// GET USER BY EMAIL
|
|
Task<User> GetUserByEmailAsync(string email);
|
|
|
|
// GET SECRET KEY
|
|
Task<string> GetSecretKeyAsync(string email);
|
|
|
|
// SAVE SECRET KEY
|
|
Task<bool> SaveSecretKeyAsync(string email, string secretKey);
|
|
}
|
|
}
|