Skip to content

Commit 41fae5a

Browse files
committed
MAGETWO-31999: oAuth issue [from github]
- Fixed expiry check
1 parent 0c238dd commit 41fae5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Integration/Model/Oauth/Consumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,6 @@ public function getCreatedAt()
180180
public function isValidForTokenExchange()
181181
{
182182
$expiry = $this->dataHelper->getConsumerExpirationPeriod();
183-
return $this->getResource()->getTimeInSecondsSinceCreation($this->getId()) > $expiry;
183+
return $expiry > $this->getResource()->getTimeInSecondsSinceCreation($this->getId());
184184
}
185185
}

0 commit comments

Comments
 (0)