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

[AuthManager] clear token refresh timer #590

Merged
merged 2 commits into from
Feb 10, 2023

Conversation

cranberyxl
Copy link
Contributor

✏️ Description

Before creating a new expirationRefreshTimer clear any previous timers

If you call setUserId multiple times from the react-native-sdk timer it will register a timer for refreshing them and call the authHandler multiple times. This prevents any possible duplicate timer situations.

Before creating a new expirationRefreshTimer clear any previous timers
@roninopf roninopf self-requested a review February 2, 2023 20:18
@roninopf
Copy link
Contributor

roninopf commented Feb 2, 2023

@cranberyxl Thanks for the fix! Will merge and release ASAP.

@roninopf roninopf merged commit 4cb59a0 into Iterable:master Feb 10, 2023
@cranberyxl cranberyxl deleted the fix/too-many-timers branch June 13, 2024 09:09
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