What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Could I create or authenticate the user instead of Shopify

Could I create or authenticate the user instead of Shopify

Sammer
Visitor
1 0 0

Hi,

  I have done some research on the Storefront API and there are a few APIs to manipulate customers' data, such as customerCreate, customerReset and so on.

  But I am not sure whether I could fully customize the page such as user login/registration/reset password.

  take the user's registration as an example.  I am going to submit the user's information such as email, password and so on to my own server. I will check the rules as my own and then save it to my own database. After that, I use the GraphQL mutation to create a customer to the Shopify.

   Is it allowed or feasibility? Thanks in advance. 

Reply 1 (1)

disputify
Excursionist
12 1 3

You can't persist passwords against a customer, or authenticate against a customer in any way.

However, if you're authenticating customers within your own app/site, you could then associate an order via the API to that Shopify customer

Disputify fraud and fraudulent refund detection, free plan available: https://apps.shopify.com/disputify