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 incorrect expiration check in refresh_token function #342

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

mbthornton-lbl
Copy link
Contributor

This PR addresses a bug in the nmdcRuntimeApi client. The refresh_token function was incorrectly checking for an expired token - the correct check should be:

if not self.token or self.expires_at < time() - 60

  • refresh

@mbthornton-lbl mbthornton-lbl linked an issue Jan 8, 2025 that may be closed by this pull request
@mbthornton-lbl mbthornton-lbl merged commit 533932c into main Jan 9, 2025
1 check passed
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.

runtime api calculating token expiration incorrectly
3 participants