spartacus⚿site⚿cart and the “Cart is not anonymous” error after session expiry

0 Comments

Summary After a session expires, the previous user’s active cart id can stay in localStorage (spartacus⚿site⚿cart). When another user logs in, Spartacus tries to merge that cart into the new user’s cart as if it were anonymous, and the backend rejects it with “Cart is not anonymous”. Fixes made: 1. How the key works Where it […]