Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.
Solved

Storefront API: customer access token with new accounts

Aron1610
Visitor
2 0 0

Hi everyone,

 

we are in the process of developing an mobile app which supports the login of users on their account. With classic accounts (email and password) we could create an access token with the Storefront API (create customer access token) where we send our email and password. Now we want to authenticate with new accounts (code will be sent by email). How can we do this with the Shopify API? 

 

Best Regards,

Aron 

Accepted Solution (1)

Brett_Helium
Shopify Partner
183 36 64

This is an accepted solution.

Hey @Aron1610,

Shopify just recently released a brand new separate API for this. You can check it out here: https://www.shopify.com/partners/blog/introducing-customer-account-api-for-headless-stores

Brett | Helium
Helium builds apps that thousands of merchants depend on:
- Customer Fields ✪✪✪✪✪ (330+ reviews)
- Meteor Mega Menu ✪✪✪✪✪ (250+ reviews)

View solution in original post

Replies 3 (3)

Brett_Helium
Shopify Partner
183 36 64

This is an accepted solution.

Hey @Aron1610,

Shopify just recently released a brand new separate API for this. You can check it out here: https://www.shopify.com/partners/blog/introducing-customer-account-api-for-headless-stores

Brett | Helium
Helium builds apps that thousands of merchants depend on:
- Customer Fields ✪✪✪✪✪ (330+ reviews)
- Meteor Mega Menu ✪✪✪✪✪ (250+ reviews)
Aron1610
Visitor
2 0 0

Thanks for the quick help!

SBD_
Shopify Staff
1779 263 383

Hey @Aron1610 

 

I believe the new Customer Account API can help with this: https://shopify.dev/docs/api/customer#code-challenge-verifier

Scott | Developer Advocate @ Shopify