From 171384ea5ed65bf5c486cc0b7e6a8c8d2b7dee7d Mon Sep 17 00:00:00 2001 From: Sebastian Pucheta Date: Fri, 17 May 2024 09:56:52 -0300 Subject: [PATCH] IEX-1076 Intecrease grace period --- functions/modules/claim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/modules/claim.js b/functions/modules/claim.js index 7d47e24..9df77af 100644 --- a/functions/modules/claim.js +++ b/functions/modules/claim.js @@ -108,7 +108,7 @@ app.get( '/claim/:event_id/:public_auth_token', async ( req, res ) => { // Note: this sets how long scans are valid, it is an ESSENTIAL part of this applicaion // CI is set low so we can check if our app is performans // Live is set longer so that users on slow networks are not penalised - const old_auth_grace_period_in_ms = 1000 * ( CI || is_test_event ? 30 : 30 ) + const old_auth_grace_period_in_ms = 1000 * ( CI || is_test_event ? 60 : 60 ) // Check whether the (previous) auth token is still valid const current_auth_is_valid = public_auth?.token == public_auth_token