You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(auth): prevent concurrent token refresh and adding necessary logs (#8294)
## Problem
- There was a significant increase in call volume for the sso-oidc
CreateToken operation from AmazonQ-For-VSCode clients.
## Solution
- The root cause was identified as a race condition in concurrent
asynchronous token refresh operations within the VSCode extension. When
bearer tokens expired (after 1 hour), multiple simultaneous calls to
getToken() independently triggered token refresh operations, resulting
in duplicate OIDC API calls.
- Implemented a "promise deduplication" pattern to prevent duplicate
async OIDC calls.
---
- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
0 commit comments