Magento2 Rest API & PWA.
Using PWA I want to allow the user to compare products. I added the product to comparison programmatically.
I am facing 2 issues
For Guest User, how do I stop the user from adding the same product to compare, if that product already is in compare list
How am I supposed to transfer the compare products from Guest User to login user?