Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token should retry after refresh failure to avoid eventual client disconnection from the editing session #16890

Merged
merged 5 commits into from
Aug 21, 2024

Conversation

oleq
Copy link
Member

@oleq oleq commented Aug 8, 2024

Suggested merge commit message (convention)

Fix (cloud-services): The Token refresh should retry after failure to avoid disconnection and data loss in real-time collaboration.


Additional information

Closes https://github.com/cksource/ckeditor5-commercial/issues/6561.

// If the refresh failed, keep trying to refresh the token. Failing to do so will eventually
// lead to the disconnection from the RTC service and the editing session (and potential data loss
// if the user keeps editing).
this._registerFailedRefreshTokenTimeout();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this should engage only when using the default refresh callback. A custom integrator's callback could come with its own refresh logic and this would be redundant or even buggy.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figured out that it's unlikely for a custom refresh callback to come with a retry logic and integrators who fall into this category should also benefit from auto-retry logic.

@oleq oleq marked this pull request as ready for review August 13, 2024 15:06
Copy link
Contributor

@DawidKossowski DawidKossowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All changes seem to be compliant with our f2f discussion. So, LGTM.

@oleq oleq merged commit 0154d4c into master Aug 21, 2024
9 checks passed
@oleq oleq deleted the cc/6561-token-refresh-failure branch August 21, 2024 14:57
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.

2 participants