fix oauth refresh token check (#3498)
This commit is contained in:
committed by
Yuri Kuznetsov
parent
d13a1ffbc7
commit
4c6dd88a2d
@@ -67,8 +67,8 @@ class TokensProvider
|
||||
if (
|
||||
$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);
|
||||
|
||||
Reference in New Issue
Block a user