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

client.cart.show does not work with bearer token #335

Open
M-Usman10 opened this issue Feb 27, 2022 · 0 comments
Open

client.cart.show does not work with bearer token #335

M-Usman10 opened this issue Feb 27, 2022 · 0 comments

Comments

@M-Usman10
Copy link

In the checkout flow, retrieving cart for a non-guest user does not work as expected & returns an error.

Context

I create cart for the use user with the following script:
await client.cart.create()
await client.cart.show({bearer_token:bearer})
The second line gives an error that resource you are looking for does not exist . I'm able to successfully complete checkout in the guest model but couldn't create cart for a user.

Development Environment

  • SDK version: spree/storefront-api-v2-sdk@5.1.2
  • npm version: npm@8.3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant