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

onAuthTokenRequested() does not invoke before AuthToken Refresh Period or after AuthToken expires #741

Open
amit3vedi opened this issue Jun 3, 2024 · 0 comments

Comments

@amit3vedi
Copy link

I have noticed that on 3.5.2 SDK version if app sets valid JWT token during initialisation. SDK use that JWT token but after that next time when token expires or about to expire as configured using setExpiringAuthTokenRefreshPeriod() method. SDK does not call onAuthTokenRequested() function again and app stops sending events to iterable.

To me it seems like this issue is happening because of this if condition here you have return statement inside if and because of this condition, value of pendingAuth variable will stay true and next time whenever app call requestNewAuthToken() function control will goto else block of if (!pendingAuth) { condition hence onAuthTokenRequested() will never get invoke until user restart app.

This is just my guess base on short time i spent checking SDK source code. issue could be something else but i have observed this issue on 3.5.2 multiple times. i had not observe this issue on 3.5.1 previously.

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

No branches or pull requests

1 participant