We have a shopify new store Dune Buggy Dubai with some user accounts without password. You can easily sign in on the shop account just put your details with email then you receive a code.
But in our iOS app, how can we log in to these accounts ? Using the Mobile Buy SDK, the only way I see is to create a customerAccessToken which requires a password, so that doesn’t work in my case.
There’s also an open issue on the Mobile Buy SDK repo, that says I should use the Customer Account API, but I couldn’t get it to work, since I need to add a redirect_uri in my Shopify admin console but I can’t find it anywhere.
Your analysis is correct. The Mobile Buy SDK does not support Shopify’s new passwordless login system, and you must use the Customer Account API instead. The redirect_uri setting you are looking for is not in the main store settings because it is tied to a specific sales channel.
To configure it, you must first install the “Headless” sales channel from the Shopify App Store. Once added, navigate to its settings page within your Shopify admin. There you will find a section for the Customer Account API where you can input your “Callback URI(s)”. For your iOS app, this should be a custom URL scheme that your application is configured to handle.
This setup enables the proper authentication flow. Your app will direct users to a web view for the login, and after they enter the one-time code, Shopify will use your specified callback URI to redirect back to your app with the necessary authorization code to complete the sign-in process.