Customer: null with Shopify-Storefront-Private-Token

Hello,

I am trying to request a customer using Shopify-Storefront-Private-Token (without X-Shopify-Storefront-Access-Token) but the response is always customer: null

{
“data”: {
“customer”: null
}
}

The same request (same accessToken) with X-Shopify-Storefront-Access-Token works fine and returns the full customer information.

Can somebody from Shopify help here?

To clarify, the query in question is the one to get customer data by access token. https://shopify.dev/docs/api/storefront/2023-01/queries/customer

Also note that these access tokens are created via public access (using X-Shopify-Storefront-Access-Token header). But we need to get the customer data in a private access (using Shopify-Storefront-Private-Token header). We keep getting a null response (no errors).

Hi Sergio,

Did you ever figure this out? I am running into the same problem.

Thanks!