Magento 2 REST API call to get logged in customerID
0
In reference to this link: Magento 2 REST API call to get logged in customer ID We are working on a similar scenario, where the frontend sits on Magento 2 and logic is written on server side( creating web services) using Node.js and Express.js. Everything sits on other webspace running Node.js so the front end sends API calls for requests and server side logic should add products to cart for both guest and customer logged in. How to differentiate between guest and customer on websites using REST API's?, for now we only managed to create guest cart, create cartid and send items, but we are stuck on fetching cart information for guest if already exists and same for the customer. we are adding product as the guest, but we need to find the difference as to guest and customer - how to fetch current customers...