Skip to content

Commit 1d116bb

Browse files
committed
Update to use the provided tolerance to check for expiry
1 parent 55426b1 commit 1d116bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Requests/Verifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function isExpired(int $tolerance) : bool
189189
$issuedAt =
190190
Carbon::parse($this->headers->get('X-SIGNED-TIMESTAMP', '1901-01-01 12:00:00'));
191191

192-
return Carbon::now()->diffInSeconds($issuedAt) > 60;
192+
return Carbon::now()->diffInSeconds($issuedAt) > $tolerance;
193193
}
194194

195195
/**

0 commit comments

Comments
 (0)