I have created a custom session and it's storage with custom namespace.
I have set some data in storage which I am trying to fetch in my api calls but not getting any data in session.
I do get the data from session storage in storefront but not in rest api calls.
It is this preference code that doesn't allow me to access the session.
<preference for="Magento\Framework\Session\Config\ConfigInterface" type="Demo\MyModule\Model\Session\CustomConfig" />
Any help will be appreciated.