I am using bearer token for rest API authentication in Magento2.3.2 but I am facing one issue, while registering the new user, admin authentication token is required while registering New user by API. So my question is how I can register new user with authentication?
1 Answer
Take a look at vendor/magento/module-customer/etc/webapi.xml
<route url="/V1/customers" method="POST">
<service class="Magento\Customer\Api\AccountManagementInterface" method="createAccount"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
As we can see, we can create a new customer account without token.
-
I want to reg. with token but don't go with admin token , is this possible by customer token? Commented Jan 31, 2020 at 9:19
-