Create Customer account with social login with javascript

Deejohn
New Member
2 0 0

I am here developed a social login option and its working, but how can i create customer account after social login into shopify. i have tried some coding and its executing without error. 

but account could not created in shopify, i have used javascripting and ajax to post customer details into account. 

 

POST /admin/api/2021-04/customers.json may i get an idea on this,how to use this.

 

0 Likes
Jason
Shopify Expert
10275 144 1945

If you're doing this from the front end you'll be exposing the private app key data. This means any bad actor could take that key and extract all the customer info your shop has, or just opt to change or delete it. Please do not attempt to make calls to the Admin API that are not done in a safe and secure manner.

Create an app. Pass the details to the app. Let the app interact securely with the Admin API.
https://shopify.dev/concepts/apps

If you have this code live on the site at the moment you should immediately delete that key.

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.


★ http://freakdesign.com.au ★
0 Likes
Deejohn
New Member
2 0 0

Ok Sir, Thanks

0 Likes