From d8dbfaa7ab445ecd8b9b4f248fd645669fbdd57d Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 18 May 2025 15:39:01 +0000 Subject: [PATCH] Added leeway to the device code token polling process. --- VERSION | 2 +- src/OAuth2/OAuth2DeviceInfo.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 83f5cb26..b2067301 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -20250513 +20250518 diff --git a/src/OAuth2/OAuth2DeviceInfo.php b/src/OAuth2/OAuth2DeviceInfo.php index d6d30328..2570d6e8 100644 --- a/src/OAuth2/OAuth2DeviceInfo.php +++ b/src/OAuth2/OAuth2DeviceInfo.php @@ -49,7 +49,7 @@ class OAuth2DeviceInfo { } public bool $speedy { - get => ($this->polledTime + $this->interval) > time(); + get => ($this->polledTime + $this->interval - 1) > time(); } /** @var string[] */