We are using Magento2 REST API 1) We are creating an app which will fetch the products,category and cms page from magento database and show in app. 2) In our app without registration no one can able to see data of products,category and cms. 3) so once we register in app we get the token of customer and as magento provide rest api for customer we are allowing to validate and saved that customer in ur magento database. 4) Now if customer goes to any product,category and cms page it showing error as “Consumer is not authorized”..and we have checked in POSTMAN also with the same of token of customer which we have generated we found the same error ..as per magento we can’t use the customer token to get the product,category and cms page data… 5) But if we use the Token which we have created for admin user and checked the API in post man we get the correct data as token is for admin user…
For Example : API URL : localhost/rest/V1/products/:sku
so what will be the solution ?