mirror of
https://github.com/bitwarden/server.git
synced 2026-02-03 07:33:11 +08:00
12 lines
368 B
C#
12 lines
368 B
C#
using Bit.Core.Entities;
|
|
|
|
namespace Bit.Core.Identity
|
|
{
|
|
public interface IOrganizationTwoFactorTokenProvider
|
|
{
|
|
Task<bool> CanGenerateTwoFactorTokenAsync(Organization organization);
|
|
Task<string> GenerateAsync(Organization organization, User user);
|
|
Task<bool> ValidateAsync(string token, Organization organization, User user);
|
|
}
|
|
}
|