sanjeevyadavIT / magento_react_native

🛒 MageCart: E-commerce app for Magento 2.x written in React Native
GNU General Public License v3.0
282 stars 124 forks source link

Use Integration token for API authorization #26

Closed sanjeevyadavIT closed 5 years ago

sanjeevyadavIT commented 5 years ago

Is your feature request related to a problem? Please describe. Currently the app uses admin login credentials to get admin access token for API authorization. Every time app is started a new token is requested, if we create integration token, we don't need to hit API every time to get access token

Describe the solution you'd like

  1. Remove code that uses /V1/integration/admin/token API
  2. Manually provide an integration token in magento.js file, which will be used in place of admin access token

Additional context consult Magento 2 API doc