Skip to content

Comments

fix: reset requestTime on token acquisition failure#316

Open
pyrooka wants to merge 2 commits intomainfrom
nb/fix-vulnerability
Open

fix: reset requestTime on token acquisition failure#316
pyrooka wants to merge 2 commits intomainfrom
nb/fix-vulnerability

Conversation

@pyrooka
Copy link
Member

@pyrooka pyrooka commented Feb 19, 2026

Reset requestTime and clear pendingRequests in the error handler to prevent a 60-second authentication freeze after failed token acquisition attempts. Previously, requestTime remained set after failures, causing subsequent requests to queue indefinitely.

Checklist
  • npm test passes (tip: npm run lint-fix can correct most style issues)
  • tests are included
  • documentation is changed or added

Reset requestTime and clear `pendingRequests` in the error handler
to prevent a 60-second authentication freeze after failed token
acquisition attempts. Previously, `requestTime` remained set after
failures, causing subsequent requests to queue indefinitely.

Signed-off-by: Norbert Biczo <pyrooka@users.noreply.github.com>
@pyrooka pyrooka self-assigned this Feb 19, 2026
@pyrooka pyrooka requested review from Andris28 and diatrcz February 19, 2026 12:55
Copy link
Contributor

@diatrcz diatrcz left a comment

Choose a reason for hiding this comment

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

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants