Skip to content

Commit bb976b7

Browse files
committed
ACP2E-3930: [QUANS] - Does Magento_Fedex core module check for a valid-active token before sending a request to get a new one?
1 parent 097119b commit bb976b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Fedex/Model/Carrier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ private function retrieveAccessToken(?string $apiKey, ?string $secretKey): strin
974974
if (!$this->areAuthKeysValid($apiKey, $secretKey)) {
975975
return null;
976976
}
977-
$cacheKey = 'fedex_access_token_' . $apiKey . $secretKey;
977+
$cacheKey = 'fedex_access_token_' . hash('sha256', $apiKey . $secretKey);
978978
$cacheType = 'fedex_api';
979979
if ($cachedToken = $this->getCachedAccessToken($cacheKey)) {
980980
return $cachedToken;

0 commit comments

Comments
 (0)