From 166aaa5d24cd8586e1bf9fa25a719917e6e0c97b Mon Sep 17 00:00:00 2001 From: Freek Vandeursen Date: Tue, 25 May 2021 16:56:40 +0200 Subject: [PATCH] Reduce the access token refresh interval rate. Based on https://support.exactonline.com/community/s/knowledge-base#All-All-DNO-Content-oauth-eol-oauth-devstep3 --- src/Picqer/Financials/Exact/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Picqer/Financials/Exact/Connection.php b/src/Picqer/Financials/Exact/Connection.php index fb814b81..08ba2c76 100644 --- a/src/Picqer/Financials/Exact/Connection.php +++ b/src/Picqer/Financials/Exact/Connection.php @@ -582,7 +582,7 @@ private function tokenHasExpired() return true; } - return ($this->tokenExpires - 60) < time(); + return ($this->tokenExpires - 10) < time(); } private function formatUrl($endPoint, $includeDivision = true, $formatNextUrl = false)