Repository navigation
fix: token provider rejection during reconnect - #3913
Merged
Merged
Conversation
szuperaz
approved these changes
Oct 29, 2026
Contributor
SDK Size
|
Contributor
|
π This PR is included in version 9.11.1 π The release is available on:
Your semantic-release bot π¦π |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
π― Goal
Linear ticket: https://linear.app/stream/issue/REACT-1472/unhandled-rejection-when-tokenprovider-fails-during-reconnect
When the
tokenProviderrejects while the WebSocket reconnects after an expired token,stream-chatlets the rejection escape as an unhandled promise rejection. Integrators can't catch it, and mobile error trackers report it as a crash (e.g. a token refresh in a network dead spot).π Implementation details
Bumps
stream-chatto^9.54.4, which contains the fix (GetStream/stream-chat-js#1962). A failed refresh is now handled like a failed connect and the reconnect retries with the usual backoff.Bumped in
package/and the example apps (SampleApp,E2ETestApp,ExpoMessaging,ExpoChatGPTSample). No SDK code changes.π¨ UI Changes
/
π§ͺ Testing
yarn test:typecheckandyarn test:unitpass.βοΈ Checklist
developbranchπ€ Generated with Claude Code