I’m working on React-Native application with Shopify. In this application Customers (who will buy the products) is the only target user.
I wanted to implement a Login mechanism for customer but unable to find Shopify API for the same.
I have already gone through Storefront API and Customer API
Could you please guide me here.
Thanks.
3
Answers
Shopify provides a customer login route, so you simply wire up that. No need to re-invent the wheel. Examine any existing Shopify theme for inspiration. No need for any API calls.
I got the solution for this.
Prerequisites:
Steps:
https://${shop_name}.myshopify.com
and this URL also contains some query params having redirect_uri).This is a properly working example of Shopify Integration that I and my team have integrated using React Native and Python successfully.
Use customerAccessTokenCreate mutation which will provide you the access token when you pass login credential as an input. This is actually work like login api. Here is the link https://shopify.dev/docs/storefront-api/reference/mutation/customeraccesstokencreate?api%5Bversion%5D=2020-04