Same Google Auth Button for both Login and Signup Completed

Post author
Chuck Lapointe

Hi,

To help streamline user experience, we would like to build a login / signup flow for users in one form, similar to how NYTimes.com and other platforms do it with a "Continue with" flow.

Proposed workflow

If the email (or Google auth) that they click exists, they simply log them in (if they have the proper authentication), and if it the account doesn't exist, we add a new field to set their password & add Terms & Conditions and modify the state of the Submit button to sign them up.

Current state

We are able to do this for Password logins by making a call to our DB to see if the email exists and according to what we get back, we call the login or signup MemberStack functions, but we cannot do this with Google if they click on the "Continue with Google" button as they haven't provided their email yet before clicking.

We could, theoretically, ask for them email before even allowing them to click on Continue with Google, but that would add a unnecessary step for users and might deter them from creating an account.

We operate a registration wall on a large media site in Canada, so milliseconds matter in this flow as we want to maximize free account conversions.

 

 

Comments

4 comments

  • Comment author
    Duncan from Memberstack
    • Official comment

    I have good news!! This feature is now live 🎉

    Members will automatically be logged in if they click on a social auth button in a sign up form. 

    It is also now possible to allow members to sign up via social auth login buttons. There's a new attribute you can add to your login forms and login modal buttons. 

  • Comment author
    Duncan from Memberstack

    Hey Chuck Lapointe we have a related project in the roadmap for this Q. I'll follow up here once we decide exactly how to implement. 

    1
  • Comment author
    Chuck Lapointe

    Hi Duncan from Memberstack

    Do we have more details on this?

    0
  • Comment author
    Chuck Lapointe

    This is awesome ! Thanks Duncan from Memberstack

    This will allow us to create one form that both logs in or signs up a user depending on their state, improving the user experience

     

    0

Please sign in to leave a comment.