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.
1 parent 323994f commit eab3674Copy full SHA for eab3674
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