Skip to content

Conversation

@StarProxima
Copy link

Fixed the race condition described in issue #115 where the token getter could return stale tokens during setToken/clearToken operations.

The fix sets the authentication status to AuthenticationStatus.undetermined before starting storage operations, ensuring that any concurrent calls to the token getter will wait for the storage operation to complete.
This prevents API requests from receiving outdated tokens during token update operations, resolving authentication failures and maintaining consistent application state.

@StarProxima StarProxima requested a review from felangel as a code owner August 15, 2025 15:44
@StarProxima StarProxima changed the title fix(fresh): fix race condition in token access (#115) fix(fresh): fix race condition in token access Aug 15, 2025
@StarProxima
Copy link
Author

@felangel hi, can you check this?

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.

1 participant