Skip to content

fix: token provider rejection during reconnect - #3913

Merged
isekovanic merged 1 commit into
developfrom
fix/token-provider-error-retries
Oct 29, 2026
Merged

isekovanic merged 1 commit into
developfrom
fix/token-provider-error-retries

Conversation

@isekovanic

Copy link
Copy Markdown
Contributor

🎯 Goal

Linear ticket: https://linear.app/stream/issue/REACT-1472/unhandled-rejection-when-tokenprovider-fails-during-reconnect

When the tokenProvider rejects while the WebSocket reconnects after an expired token, stream-chat lets 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-chat to ^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:typecheck and yarn test:unit pass.

β˜‘οΈ Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Documentation is updated
  • New code is tested in main example apps, including all possible scenarios
    • SampleApp iOS and Android
    • Expo iOS and Android

πŸ€– Generated with Claude Code

@Stream-SDK-Bot

Copy link
Copy Markdown
Contributor

SDK Size

title develop branch diff status
js_bundle_size 2037 KB 2037 KB 0 B 🟒
ai_components_size 163 KB 163 KB 0 B 🟒

@isekovanic
isekovanic merged commit 07e1b0e into develop Oct 29, 2026
11 of 12 checks passed
@isekovanic
isekovanic deleted the fix/token-provider-error-retries branch October 29, 2026 17:32
@github-actions github-actions Bot mentioned this pull request Oct 29, 2026
6 tasks
@stream-ci-bot

Copy link
Copy Markdown
Contributor

πŸŽ‰ This PR is included in version 9.11.1 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants