Skip to content

Commit

Permalink
Update nmdc_automation/api/nmdcapi.py
Browse files Browse the repository at this point in the history
Co-authored-by: eecavanna <[email protected]>
  • Loading branch information
mbthornton-lbl and eecavanna authored Jan 8, 2025
1 parent 0796eff commit d8ee83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nmdc_automation/api/nmdcapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(self, site_configuration: Union[str, Path, SiteConfig]):
def refresh_token(func):
def _get_token(self, *args, **kwargs):
# If it expires in 60 seconds, refresh
if not self.token or self.expires_at < time() - 60:
if not self.token or self.expires_at < time() + 60:
self.get_token()
return func(self, *args, **kwargs)

Expand Down

0 comments on commit d8ee83b

Please sign in to comment.