Retrieving customer orders with Storefront API

Retrieving customer orders with Storefront API

lspoor
Shopify Partner
6 1 1

I'm wanting to build an accounts section with React, I'll want to retrieve the order data via the Storefront API which means I'll need to query the Customer. Although I only want to query/read the customer and not mutate it, this will still require a customerAccessToken. What is the best way to approach this in terms of retrieving the token and then storing it securely on a front-end basis?

 

I did find this thread but it didn't shed much light - https://community.shopify.com/c/shopify-apis-and-sdks/storing-customer-access-token-for-custom-front...

Replies 0 (0)