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 31b92c9 + 9669bd6 commit 382c84cCopy full SHA for 382c84c
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