Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Require User login data from the store to enable same user experience in the app

Require User login data from the store to enable same user experience in the app

SunnyG1
Visitor
2 0 0

Hey Guys, 

 

We have been using One-click social login app from devcloudsoftware on our web store for over 2 years now. We are now building a Mobile app with Hulk apps and need all the users' login and passwords so we can replicate the user experience when they log in using the mobile app.
 
However, devcloudsoftware cannot provide the data due to GDPR policies and the Shopify agreement.
 
One way is to look at login API and multipass tokens, but it seems that are available only for Shopify plus customers.
 
We are on a pro plan so don't have access to multipass tokens. Is there a workaround? 
 
Replies 3 (3)

Yeady123
Explorer
61 7 9

@SunnyG1 there is a workaround for this issue. Instead of transferring the user's login and password information, you can implement a single sign-on (SSO) solution for your mobile app. With SSO, users can log in to your app using their existing accounts from a third-party service, such as Google or Facebook.

Here's a high-level overview of how it works:

  • The user clicks the "Sign in with Google" or "Sign in with Facebook" button in your mobile app.
  • The user is redirected to the third-party service's login page, where they enter their login credentials.
  • The third-party service authenticates the user and returns an access token to your app.
  • Your app sends a request to your server with the access token to verify the user's identity.
  • Your server uses the access token to request the user's profile information from the third-party service.
  • Your server stores the user's profile information in your database and creates a session for the user.
  • Your app receives a confirmation from your server that the user is logged in, and displays the appropriate content.

This approach has several benefits:

  • The user's login and password information is not stored on your app or server.
  • The user experience is consistent across your web store and mobile app.
  • The user only needs to remember their login credentials for the third-party service, which they may already have.

If you're using Shopify, you can use the Shopify Login API to implement SSO in your mobile app. The Login API provides a secure way for your app to authenticate users and access their Shopify account information.

You can also consider using a third-party service like Firebase Authentication or Auth0, which provides pre-built SSO solutions that you can integrate into your app.

- Was my reply helpful? Click "Like" to let me know!
- ----Was your question answered? Mark it as an Accepted Solution
You can get in touch with me via WhatsApp on +88013-13075440
Email: shahinkhan2424ft@gmail.com
SunnyG1
Visitor
2 0 0

Thanks a lot for the workaround. I was travelling, so I could not see this earlier. I will implement this over the weekend and write to you with any other queries for help. Appreciate your response. 

chipcastle
Shopify Partner
5 0 2

I cannot find the Shopify Login API. Do you have a link to it or suggestions for integrating Auth0 with a Shopify store? Thanks in advance.