Shopify / mobile-buy-sdk-ios

Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using Apple Pay or their credit card.
MIT License
452 stars 199 forks source link

Wrong error message on creating new user #1089

Open walteryaron opened 4 years ago

walteryaron commented 4 years ago

SDK 2020-01,2020-04 When using existing email on customer create: let input = Storefront.CustomerCreateInput.create( email: userEmail, password: password, firstName: .value(firstname), lastName: .value(lastname), acceptsMarketing: .value(true) ) Storefront.buildMutation { $0 .customerCreate(input: input) { $0 .customer { $0 .id() .email() .firstName() .lastName() } .customerUserErrors { $0 .code() .field() .message() } } } the response is" "<Mutation: ["customerCreate": { customer = ""; customerUserErrors = ( { code = "CUSTOMER_DISABLED"; field = ""; message = "We have sent an email to xxxx@xxxxx.com, please click the link included to verify your email address."; } ); }]>"