public AuthenticationController(ITotpSetupGenerator totpSetupGenerator, ITotpValidator totpValidator, ILogger <AuthenticationController> logger, IAccountKeyService accountKeyService) { _totpSetupGenerator = totpSetupGenerator; _totpValidator = totpValidator; _logger = logger; _accountKeyService = accountKeyService; }
public Totp(ITotpSetupGenerator totpSetupGenerator) { _totpSetupGenerator = totpSetupGenerator; _totpGenerator = new TotpGenerator(); _totpValidator = new TotpValidator(_totpGenerator); }