How to set up standalone Google auth that correctly updates both frontend state and Memberstack database? Answered

Post author
Dave Rajan

Hey guys, have 1 confusion, is it possible to login via just google?

I emended the cta in header + also setup the auth, when i clicks on cta, I too get prompted with my gmail to signin but it's not redirecting to logged in state & also not updating into memberstack members

Comments

11 comments

  • Comment author
    Duncan from Memberstack
    • Official comment

    For anyone who needs this in the future - it is possible to create a signup/login form with only a google button in it. 

    Clone this project, copy the form, and remove everything that's not the Google auth button 👍

    https://showcased.webflow.io/projects/google-authentication

  • Comment author
    Dave Rajan

    Yeah inside the login form.
    also attribute is applied to form too.

    0
  • Comment author
    Josh Lopez

    Is the button inside a signup or login form? If not try placing the button in a form with the form element data attribute like data-ms-form="signup"

    0
  • Comment author
    Josh Lopez

    Whats the url so we can take a look? 🙂

    0
  • Comment author
    Jayess

    Hello Dave 👋🏼
    Just checking in and seeing how you were coming along 😁 Were you able to solve this?

    0
  • Comment author
    Dave Rajan

    for the time being, I replaced with default modal, works like a charm 🙂 but sending the url in a DM too. since using the jetboost + memberstack

    Hi @JS I end up using the default modal with email Id/ password & google login, there it works out very well. 🙂

    0
  • Comment author
    Jayess

    Awesome 😁 Glad to hear it !

    0
  • Comment author
    Roo StPierre

    Hello, is there any way that the user can still login via google even the user signing up using the code?

    0
  • Comment author
    Julian Galluzzo

    Is it not working by defaut! If not, I guess you could just include a standard login form below the passwordless one, with only the google sign in button

    0
  • Comment author
    Waqar Naqshbandi

    Hey guys, I couldn't find any videos on how to setup Google Oauth with Memberstack. Could anyone please guide me on that?

    0
  • Comment author
    Tyler Bell

    https://docs.memberstack.com/hc/en-us/articles/8327236548379

    0

Please sign in to leave a comment.