Skip to main content

How to integrate Google SSO authentication into a mobile app using MemberStack API?

My website handles user SignUp/SignIn using memberstack. Now I need to create the mobile app for my service. I am not sure how will use the auth providers on the mobile. Is there a way to integrate it into memberstack API after getting the name, email info by using Google SSO?
How can I flag to google sso on Memberstack after registering manually?
It will be needed in login.

3 comments

  • Duncan from Memberstack
    Duncan from Memberstack

    Hey John, I'm afraid I don't quite understand. Google login works on mobile and desktop. Ahh but if you're building a react app to put into the app stores, then things do get more complex. A few customers have got it working, but we don't have any documentation since mobile is outside of our area of expertise.

    All that said, perhaps this is what you're looking for? https://docs.memberstack.com/hc/en-us/articles/8161104982043-Custom-SSO-Integrations

    0
  • John Carlo
    John Carlo OP

    Oh, I am trying to implement Google login on the mobile app, but it is failed. It is built react-native.
    Can I use Memberstack javascript sdk in react native project?

    let me clarify:
    -Get the basic(email, name, photo) info from Google.
    -Register the basic info without the password on Memberstack.
    After that, I have the some questions:
    -how to implement Google login?
    -how to check if user is registered by Google login on Memberstack?

    0
  • A J
    A J

    Hey John Carlo,

    I don't think we can use Memberstack JS SDK in react-native project. Users here have earlier setup WebView with Memberstack but I remember few faced issues in it when it came to social logins due to the social platforms' security protocols.

    Have you tried offering passwordless logins in your app? I have not implemented this in a mobile app yet but wanted to see if passwordless auth method makes sense or works for your project?

    But if you are trying to build a custom back-end where you sign them up via Google login auth method that you custom setup via Google library and then create a member in Memberstack using Admin API, I am afraid there is no way yet to link the Google account to the member you create in Memberstack in the back-end.

    Usually when users signup via Google on a site using Memberstack, we can see the individual member in Memberstack dashboard which will show this info (shown in screenshot) in the detailed member view.

    0

Please sign in to leave a comment.

Sitemap