Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

CA API access token not valid

CA API access token not valid

Nazarii_Tym
Shopify Partner
1 0 0

I've updated a hydrogen storefront with the new customer account API enabled. I'm running into an issue with the customer token and the Storefront order handler. It seems like the token from the customerAccount doesn't work with the Storefront Order query (CA Order query it too limited with data and I can't receive detailed info about my product).

So on my local I receive customerAccessToken in next way:
const customerAccessToken = await customerAccount.getAccessToken();
After I passed it to Storefront Order query, but as a result I receive: {customer: null}

I checked the value in customerAccessToken and I got it correctly, but it doesn't work with Storefront customer related requests.

Replies 0 (0)