Skip to content

Commit c08d713

Browse files
committed
Increase timestamp threshold
1 parent a2f9404 commit c08d713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auth.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,8 +1485,8 @@ int VerifyPayload(std::string signature, std::string timestamp, std::string body
14851485
current_time.time_since_epoch()).count();
14861486

14871487
// Step 3: Compare the timestamps
1488-
if (current_unix_time - unix_timestamp > 15) {
1489-
// std::cout << "The timestamp is older than 15 seconds." << std::endl;
1488+
if (current_unix_time - unix_timestamp > 20) {
1489+
// std::cout << "The timestamp is older than 20 seconds." << std::endl;
14901490
LI_FN(exit)(3);
14911491
}
14921492

0 commit comments

Comments
 (0)