EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
fix oauth refresh token check (#3498)
Usame Beşir4c6dd88a2d4d
diff --git a/application/Espo/Tools/OAuth/TokensProvider.php b/application/Espo/Tools/OAuth/TokensProvider.phpindex 698ad4fa5c..5facdefb68 100644--- a/application/Espo/Tools/OAuth/TokensProvider.php+++ b/application/Espo/Tools/OAuth/TokensProvider.php@@ -67,8 +67,8 @@ class TokensProviderif ($account->getRefreshToken() &&$account->getExpiresAt() &&- $account->getExpiresAt()->isGreaterThan(- DateTime::createNow()->addSeconds(- self::EXPIRATION_LEAD_TIME)+ $account->getExpiresAt()->isLessThan(+ DateTime::createNow()->addSeconds(self::EXPIRATION_LEAD_TIME))) {$this->refresh($account);