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

Handle refresh token when editor destroyed during token fetching #17466

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

f1ames
Copy link
Contributor

@f1ames f1ames commented Nov 14, 2024

Suggested merge commit message (convention)

Fix: Handle refresh token when editor destroyed during token fetching. Closes #17462.


Additional information

The issue was caused by the race condition when token fetching request is initialized, editor is destroyed in the meantime and then the request rejects, reinitiating the token refresh logic.

I added Token._isDestroyed property to abort all further refresh action when token is already destroyed.

@f1ames f1ames marked this pull request as ready for review November 14, 2024 13:34
@f1ames
Copy link
Contributor Author

f1ames commented Nov 15, 2024

@lkszzajac would you be able to find few minutes to test it the same way as before so we have consistent, kind of, check how it behaves?

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.

Token refresh request is being sent after editor is destroyed
1 participant