Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
I am using the storefront API to develop a mobile app for a Shopify store. While trying to develop a 'Join our newsletter' feature I realized that you can't create new customers without a password. I want my customers to be able to join my newsletter without creating an account. To be able to do that I need to add a customer with just the email and acceptsMarketing fields. Thank you for your time.
Have you found a solution to this issue?
The only thing I can think of is generating a random password for each signup.
Haven't found a solution. When a new customer wants to join the newsletter I redirect him to the register screen. There are some solutions with the Admin API though.