Unless I am missing something, I would like to manually restart the timer upon a successful verification. I tried using WindowStart() but it didn't seem to do anything. I am using DUO and the timer does not reset to 30 `seconds.
public static bool VerifyTotp(string base32Secret, string userCode)
{
var totp = new Totp(Base32Encoding.ToBytes(base32Secret));
if (totp.VerifyTotp(userCode, out _, VerificationWindow.RfcSpecifiedNetworkDelay))
{
totp.WindowStart();
return true;
}
return false;
The documation does not elaborate on WindowStart.
Unless I am missing something, I would like to manually restart the timer upon a successful verification. I tried using WindowStart() but it didn't seem to do anything. I am using DUO and the timer does not reset to 30 `seconds.
The documation does not elaborate on WindowStart.