Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

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

@M-Usman10

Description

@M-Usman10

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions