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

Adjust token refresh offset to prevent immediate renewal #167

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

ilkilic
Copy link
Collaborator

@ilkilic ilkilic commented Sep 4, 2024

Previous offset was 5 minutes, matching the token's 5-minute validity, causing immediate refresh upon issuance. Adjusted to ensure refresh only occurs shortly before expiration (30 seconds)

@ilkilic ilkilic self-assigned this Sep 4, 2024
@AurelienJaquier
Copy link
Collaborator

Isn't the token supposed to last 1 hour?

@ilkilic
Copy link
Collaborator Author

ilkilic commented Sep 4, 2024

@pgetta will that be enough or do you also want it to be able to set a custom offset?

@AurelienJaquier apparently it is changed to 5 min

Copy link
Collaborator

@AurelienJaquier AurelienJaquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I wasn't aware of the change in token duration.

Copy link

@pgetta pgetta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, that should work!

@ilkilic ilkilic merged commit 9c56159 into main Sep 4, 2024
6 checks passed
@darshanmandge darshanmandge deleted the reduce_token_offset branch September 4, 2024 15:45
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.

3 participants