Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add per-page timeout for passwordless auth #492

Merged
merged 2 commits into from
Oct 23, 2024
Merged

add per-page timeout for passwordless auth #492

merged 2 commits into from
Oct 23, 2024

Conversation

cfbao
Copy link
Member

@cfbao cfbao commented Oct 22, 2024

We have an overall timeout of 15 seconds for passwordless auth, but also we should not get stuck on a single page for anywhere near that long.

@github-actions github-actions bot added language/csharp size/M A medium-sized PR. labels Oct 22, 2024
Base automatically changed from browser-tweak to main October 22, 2024 18:49
@cfbao cfbao marked this pull request as ready for review October 22, 2024 21:05
@cfbao cfbao requested a review from a team as a code owner October 22, 2024 21:05
Comment on lines +175 to +176
pageTimer.Stop();
pageTimer.Start();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't follow why .stop needs to be called here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling .Start() on an already started timer does nothing - it will still fire at the originally scheduled time.
We want to restart the timer here, so .Stop() must be called first to reset it.

@cfbao cfbao merged commit 71eb750 into main Oct 23, 2024
9 checks passed
@cfbao cfbao deleted the page-timeout branch October 23, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language/csharp size/M A medium-sized PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants