Skip to content

Fix tokens bugs - #15

Merged
evgeniy-lvov merged 2 commits into
masterfrom
fix-tokens-bugs
Apr 28, 2026
Merged

evgeniy-lvov merged 2 commits into
masterfrom
fix-tokens-bugs

Conversation

@evgeniy-lvov

Copy link
Copy Markdown
Collaborator
  • Added #refreshPromise mutex inside Provider for concurrent 401s.
  • Moved saveTokens inside the mutex, right after refreshTokens resolves, before the retry. This guarantees tokens are persisted regardless of what happens next.

@evgeniy-lvov
evgeniy-lvov merged commit 991adac into master Apr 28, 2026
4 checks passed
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.

3 participants