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

feat: Implement refreshCredentialsIfRequired for intermediate token r… #1583

Draft
wants to merge 1 commit into
base: client-side-cab
Choose a base branch
from

Conversation

nbayati
Copy link

@nbayati nbayati commented Nov 23, 2024

This PR implements refreshCredentialsIfRequired which will be called by generateToken(). The refresh logic was implemented based on the design doc, which takes into account the refreshMargin and minimumTokenLifetime, and decides on either async or synchronous refresh if one is needed.

Notes:

  • This PR merges the changes to a feature branch and not the main branch.
  • Unit tests to follow. 

…efresh

Implement `refreshCredentialsIfRequired`, called by `generateToken()`, to handle token refresh. It uses `refreshMargin` and `minimumTokenLifetime` to decide on synchronous or asynchronous refresh
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Nov 23, 2024
Copy link

sonarcloud bot commented Nov 23, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant