We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d6930c + 3ca1c6f commit 5e97f08Copy full SHA for 5e97f08
app/code/Magento/Webapi/Model/Authorization/TokenUserContext.php
@@ -133,6 +133,11 @@ private function isTokenExpired(Token $token): bool
133
// other user-type tokens are considered always valid
134
return false;
135
}
136
+
137
+ if (empty($tokenTtl)) {
138
+ return false;
139
+ }
140
141
if ($this->dateTime->strToTime($token->getCreatedAt()) < ($this->date->gmtTimestamp() - $tokenTtl * 3600)) {
142
return true;
143
0 commit comments