I am currently working on a checkout UI extension using React in Shopify. In my extension, I need to retrieve the customer ID during the checkout process. However, I do not have access to customer emails and passwords for security reasons.
I have reviewed the Shopify documentation, and the recommended method to obtain the customer ID is by using the customerAccessTokenCreate mutation, which requires the customer's email and password. Unfortunately, this approach is not feasible for my use case.
I would like to know if there are any alternative methods or suggestions to retrieve the customer ID without relying on customer emails and passwords. Is there any other API endpoint or approach that I could use to achieve this?
Any guidance, insights, or examples would be greatly appreciated.