Skip to content

Commit

Permalink
chore: fix comment about clock_skew (#653)
Browse files Browse the repository at this point in the history
Clock skew was changed in #581
  • Loading branch information
busunkim96 committed Dec 8, 2020
1 parent 3319ea8 commit 2d3b8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/auth/credentials.py
Expand Up @@ -63,7 +63,7 @@ def expired(self):
if not self.expiry:
return False

# Remove 5 minutes from expiry to err on the side of reporting
# Remove 10 seconds from expiry to err on the side of reporting
# expiration early so that we avoid the 401-refresh-retry loop.
skewed_expiry = self.expiry - _helpers.CLOCK_SKEW
return _helpers.utcnow() >= skewed_expiry
Expand Down

0 comments on commit 2d3b8d1

Please sign in to comment.