spree-api-v2-js-sdk
spree-api-v2-js-sdk copied to clipboard
client.cart.show does not work with bearer token
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/[email protected]
- npm version: [email protected]