Skip to content

Commit cf89e1a

Browse files
committed
AC-1668 - Magento session ends after making a GraphQL request
1 parent c4eb4e2 commit cf89e1a

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

app/code/Magento/CustomerGraphQl/Model/Context/AddUserInfoToContext.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function execute(ContextParametersInterface $contextParameters): ContextP
8383
$contextParameters->addExtensionAttribute('is_customer', $isCustomer);
8484

8585
if ($this->session->isLoggedIn()) {
86-
$this->setLoggedInCustomerData($this->session->getCustomerData());
86+
$this->loggedInCustomerData = $this->session->getCustomerData();
8787
}
8888

8989
if ($isCustomer) {
@@ -94,18 +94,6 @@ public function execute(ContextParametersInterface $contextParameters): ContextP
9494
return $contextParameters;
9595
}
9696

97-
/**
98-
* Set logged in customer data
99-
*
100-
* @param CustomerInterface $customerData
101-
* @return AddUserInfoToContext
102-
*/
103-
public function setLoggedInCustomerData(CustomerInterface $customerData): self
104-
{
105-
$this->loggedInCustomerData = $customerData;
106-
return $this;
107-
}
108-
10997
/**
11098
* Get logged in customer data
11199
*

0 commit comments

Comments
 (0)