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.

Re: Customer Storefront API Login & Register in Store (not handless)

Customer Storefront API Login & Register in Store (not handless)

24by7themes
Shopify Partner
400 61 79

Hello,

I have used 'customerAccessTokenCreate'  for logged in customer. 

For normal flow of Shopify, when submit login form it redirects to CAPTCHA and liquid 'customer' object gives all data. BUT, I am trying with Storefront API. I can get AccessToken but Shopify does not give use 'customer' object because we haven't inform Shopify to person logged using StoreFront APIs.

Hope you have understand my question.

 

Ref. https://shopify.dev/custom-storefronts/customer-accounts#create-an-access-token

	const mutation = `mutation { customerAccessTokenCreate(input: {email: "${email}", password: "${password}"}) { customerAccessToken { accessToken, expiresAt }, customerUserErrors { code } } }`

Thanks.

 

Shopify Plus Expert, Quality Service Provider, CONTACT ME for any kind of solutions.
Please like and accept solution. SKYPE -> live:gp21111990
Reply 1 (1)

Don
Shopify Staff
2787 199 398

Hi there @24by7themes!

 

I just wanted to let you know I have moved your query here to our dedicated API forums, in order to get you the best chance of a helpful reply!

 

These forums are moderated and responded to by our developers and partners, so it's really the best place for this subject.

 

If you haven't already, you can check out our API reference docs on customers here.

Don | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog