React Social Login App

Tourist
4 0 0

I was currently creating a social login app using react and i want to add the users details who logged in using social login buttons into the Shopify database, but i don't have an idea how can i add the user details into the Shopify database., can anyone help me to add the user details into shopify database

0 Likes
Highlighted
Shopify Staff
Shopify Staff
403 54 62

Hey @Selvam_Nua1 ,

 

You can use the Customer resource of the Shopify REST Admin API or the Shopify GraphQL Admin API to create new Customers for a Shopify store. You can read about it here and here

 

As well, if your store is on the Shopify Plus plan, you can use the Multipass feature to import user/customer information from another system into your Shopify store. You can read more about it here.

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

1 Like
Highlighted
Tourist
4 0 0

Thank You for reply hassain ,

   How can i use the code inside the react app!

0 Likes
Highlighted
Shopify Staff
Shopify Staff
403 54 62

Hey @Selvam_Nua1 ,

 

Feel free to follow along with this tutorial here that explains how you can use Node.Js and React to build a Shopify app that can create new products for a store through the Shopify GraphQL Admin API. Here is the code base for this tutorial. You can use the code from this tutorial as a starting point creating new customers for a store through the Shopify GraphQL Admin API.

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

1 Like