Does Shopify provide API Support for logging in a B2B Customer in a custom storefront, in this case using the mobile-buy-sdk for an iOS and Android app? I can only find customerAccessTokenCreate which requires you to register a unique e-mail that doesn’t exist in the system and does not work with B2B Customers.
I’m looking for documentation/API support for logging in an existing B2B user, does anyone know if this is possible for native iOS and Android apps that use the mobile-buy-sdk.
Currently I can only register new users with unique e-mails, I need to login existing users that are already customers of a company, the user type that is referred to in the link below.
To implement B2B customer login capability in a custom storefront, you may need to use the Shopify Admin API and handle the login logic on the backend of your app. This would include developing a new authentication method that would use the Admin API to validate the credentials of current B2B clients.
Thanks for the reply. The online store sends a 6 digit OTP and logs in the customer.
Am I understanding you correctly that the way to implement that in a native iOS and Android app could be to set up my own backend server, create customer authentication, then send a request to the Graph Admin API to check against current customer records. Do you also mean to compare against their password or just to check if the customer exists?
I can’t find support for a way to retrieve customer passwords through the Admin API so that’s not possible, it’ll only be possible to get specific customers by ID or by name and e-mail.