I am trying to extend the mobile app for my cs-cart multi vendor and could register users but unable to login with api endpoint /api/users/login. Can anyone help me with actual endpoint or suggest any changes in the config files / other files to get this working. I am getting a Not Found Error on login
Hello!
Take a look at the Tygh\Api\Entities\v40\SraAuthTokens
and Tygh\Api\Entities\AuthTokens
entities. These endpoints return a token that can be used to authorise any further API requests. Please have a look at Tygh\Api\Request::getAuthFromRequest
, Tygh\Api::getUserData
to see how further authorisation is handled.
The availability of the API endpoints to customers is managed by the \Tygh\Api\AEntity::privilegesCustomer
method.