Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA API token not valid for cart buyerIdentity update #2495

Open
juanpprieto opened this issue Sep 4, 2024 · 1 comment
Open

CA API token not valid for cart buyerIdentity update #2495

juanpprieto opened this issue Sep 4, 2024 · 1 comment
Labels
Bug Something isn't working SEV-3

Comments

@juanpprieto
Copy link
Contributor

I've setup a hydrogen storefront with the new customer account API enabled. I'm running into an issue with the customer token and the cart handler. It seems like the token from the customerAccount doesn't work with the Cart Handler and I'm trying to figure out if there is another way to handle this.

I came across this comment in the CA API RFC which seems to confirm the issue.

I'm trying to use or implement the CountrySelector component but I receive an error from the API { "message": "Customer is invalid", "field": [ "buyerIdentity", "customerAccessToken" ], "code": "INVALID" } when trying to update the buyer identity.

Any help with this would be greatly appreciated.

Originally posted by @NickHazen in #2493

@scottdixon scottdixon added Bug Something isn't working SEV-3 labels Sep 5, 2024
@Nazarii-Tymoshchuk
Copy link

I also have such problem type. I am getting customerAccessToken from CA API and want to use it to get details about Order using Storefront API (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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working SEV-3
Projects
None yet
Development

No branches or pull requests

3 participants