We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b1107c commit e7774eeCopy full SHA for e7774ee
oauth/oauth.py
@@ -514,7 +514,7 @@ def _check_timestamp(self, timestamp):
514
"""Verify that timestamp is recentish."""
515
timestamp = int(timestamp)
516
now = int(time.time())
517
- lapsed = now - timestamp
+ lapsed = abs(now - timestamp)
518
if lapsed > self.timestamp_threshold:
519
raise OAuthError('Expired timestamp: given %d and now %s has a '
520
'greater difference than threshold %d' %
0 commit comments