Interface ITotpValidator
- Namespace
- GastroSky.Services.Totp.TotpValidator
- Assembly
- GastroSky.dll
2FA TOTP validator service. Implements the ITotpValidator interface.
public interface ITotpValidator
Methods
ValidateTotp(string?, string?)
Validates a TOTP against a given TOTP secret string.
bool ValidateTotp(string? totpSecret, string? totp)
Parameters
Returns
- bool
trueif the TOTP 2FA validation succeeded,falseif the code was not correct.