bigcommerce / catalyst

Catalyst - for Composable Commerce
https://catalyst-demo.site
MIT License
91 stars 64 forks source link

X-Bc-Customer-Id Header Failing to Retrieve Customer Data #1227

Open ccucunubatrellis opened 1 month ago

ccucunubatrellis commented 1 month ago

Describe the bug

We noticed that there is no result data for cart and checkout operations after a user logs in on the app and the X-Bc-Customer-Id header is passed with the user ID in the requests. According to the documentation, customer access tokens are the recommended approach to access customer data. After we switched to using the customer access tokens, the data returned as expected.

To Reproduce

related: https://bigcommerce.my.site.com/s/question/0D54v000099DwT1CAK/adding-item-to-cart-for-customer-but-calling-the-customers-cart-returns-null?language=es_MX

Steps to reproduce the behavior:

  1. Add a product to the cart.
  2. Sign in.
  3. Go to the cart page and observe that the data is not being returned.