[Feature Request] Restart an existing window
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.3k
- Forks
- 179
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the VerifyTotp and WindowStart entry points shown in the issue, then check how an existing TOTP window is represented and restarted. Confirm the intended behavior for a manually restarted timer and update the API or its documentation accordingly; no specific files or tests are named, so add or run the relevant verification coverage you find.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- authentication, security
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100