I am building a mobile application for a Magento instance. I can use Token Based Authentication to make the API calls. However I want to enable guest access in my app. The users should be able to browse the categories and products and add to card without signing in, and only need to sign in when they are checking out. Is this possible?
Magento – How to access REST APIs as guest in Magento 2.1.x
magento-2.1rest
Best Answer
I think you can use the
anonymous
resource for your api method, like:Because:
Source: Token-based authentication
You can find example here:
magento/module-quote/etc/webapi.xml