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

fix: implement exponential back off on the retries of _refreshAccessToken method #869

Merged
merged 6 commits into from
Apr 15, 2024

Conversation

dshukertjr
Copy link
Member

What kind of change does this PR introduce?

Currently the retry interval of _refreshAccessToken goes 200, 400, 600, 800, where as I believe the intended intervals are 200, 400, 800, 1600...

What is the current behavior?

The retry interval is multiple of 200 ms.

What is the new behavior?

The retry interval is properly set exponentially.

@dshukertjr dshukertjr changed the title fix: Implement exponential back off on the retries of _refreshAccessToken fix: implement exponential back off on the retries of _refreshAccessToken method Mar 27, 2024
@dshukertjr dshukertjr changed the title fix: implement exponential back off on the retries of _refreshAccessToken method fix: implement exponential back off on the retries of _refreshAccessToken method Apr 8, 2024
@kangmingtay kangmingtay merged commit f66711d into master Apr 15, 2024
3 checks passed
@kangmingtay kangmingtay deleted the fix/refresh-threashold branch April 15, 2024 09:04
kangmingtay pushed a commit that referenced this pull request Apr 18, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.63.1](v2.63.0...v2.63.1)
(2024-04-18)


### Bug Fixes

* `getUser` returns null if there is no session
([#876](#876))
([6adf8ca](6adf8ca))
* implement exponential back off on the retries of `_refreshAccessToken`
method ([#869](#869))
([f66711d](f66711d))
* update session warning
([#879](#879))
([3661130](3661130))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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