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 393f63a commit acb1f5eCopy full SHA for acb1f5e
app/src/validate.py
@@ -59,7 +59,7 @@ def validate_timestamp(self) -> None:
59
raise ValueError("expected x-timestamp to be epoch int")
60
61
current_time = int(time.time())
62
- if int(timestamp) - current_time > self.TIME_WINDOW:
+ if abs(int(timestamp) - current_time) > self.TIME_WINDOW:
63
raise ValueError("Request is too old or too far in the future")
64
65
def validate_signature(self):
0 commit comments