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 e47b0d7 + 349d178 commit 9669bd6Copy full SHA for 9669bd6
app/code/Magento/Webapi/Model/Authorization/TokenUserContext.php
@@ -132,6 +132,11 @@ private function isTokenExpired(Token $token): bool
132
// other user-type tokens are considered always valid
133
return false;
134
}
135
+
136
+ if (empty($tokenTtl)) {
137
+ return false;
138
+ }
139
140
if ($this->dateTime->strToTime($token->getCreatedAt()) < ($this->date->gmtTimestamp() - $tokenTtl * 3600)) {
141
return true;
142
0 commit comments