Skip to content

feat: Add guarded API token refresh handling with deduplication#14

Open
Nexussyn wants to merge 4 commits into
9904099:mainfrom
Nexussyn:feat/issue-2-guarded-token-refresh
Open

feat: Add guarded API token refresh handling with deduplication#14
Nexussyn wants to merge 4 commits into
9904099:mainfrom
Nexussyn:feat/issue-2-guarded-token-refresh

Conversation

@Nexussyn

Copy link
Copy Markdown

Summary

Implements a guarded token refresh flow in the API client that:

  • Uses a single-flight refresh guard so multiple simultaneous 401 responses share one refresh operation
  • Retries the original request exactly once after a successful token refresh
  • Prevents race conditions and inconsistent auth state during concurrent 401 handling

Closes #2

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.

[$45 BOUNTY] [TypeScript] Add guarded API token refresh handling

1 participant