Focuses on API authentication, access scopes, and permission management.
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.