Skip to content

Conversation

@molaycule
Copy link
Contributor

Ticket

#4391

Brief Description

This update prevents the Web SDK from entering an infinite retry loop when a token is clearly invalid. Specifically, the requester now detects known authentication failures (InvalidCredentialsError, InvalidRefreshTokenError, TokenValidationError) and skips refresh attempts in those cases. This ensures the SDK doesn’t repeatedly retry against unrecoverable auth states and instead fails fast, improving stability and avoiding unnecessary network traffic. The changelog has also been updated to document this fix.

Checklist

  • Have you added appropriate text to the CHANGELOG.md files?

@molaycule molaycule requested a review from cdhanna November 17, 2025 16:45
@molaycule molaycule self-assigned this Nov 17, 2025
@molaycule molaycule linked an issue Nov 17, 2025 that may be closed by this pull request
@github-actions
Copy link
Contributor

Web SDK Sample Build link

@github-actions
Copy link
Contributor

Lightbeam link

@molaycule molaycule merged commit 6209252 into main Nov 17, 2025
9 of 20 checks passed
@molaycule molaycule deleted the issue/4391-websdk--infinite-retry-when-token-is-clearly-broken branch November 17, 2025 17:22
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.

webSDK- infinite retry when token is clearly broken.

3 participants