spree-api-v2-js-sdk icon indicating copy to clipboard operation
spree-api-v2-js-sdk copied to clipboard

client.cart.show does not work with bearer token

Open M-Usman10 opened this issue 3 years ago • 0 comments

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

M-Usman10 avatar Feb 27 '22 16:02 M-Usman10