Skip to main content

How to troubleshoot Google Auth login failures for existing users after a Webflow to Next.js MemberStack migration?

Hi team, I recently migrated from webflow to next.js with memberstack. Everything seems to be working apart from one thing. Users who previously signed up using google auth are no longer able to log in. New users are able to create accounts with google auth/user & pass however. Any idea why this might be?

The google window opens, they select their profile and then an error message shows “An unexpected error occurred. Please try again.”

Thanks!

11 comments

  • Tyler Bell
    Tyler Bell

    Do they see that after the window closes?

    0
  • Dominic Ewer
    Dominic Ewer OP

    Yes, that is correct.

    Everything seems to be working correctly from my testing so far, but because this was quite a big migration, I was wondering if it might be possible for someone on the team to quickly review the setup or let me know if there’s anything obvious I should double-check regarding the integration.

    Totally understand if this isn’t something you offer, I just wanted to ask because I want to make sure everything is configured properly before moving forward fully.

    Really appreciate all the help so far. Thanks!

    0
  • Duncan from Memberstack
    Duncan from Memberstack

    Hey Dominic 👋 We don't usually offer this just because each site is soooo different and the very best thing you can do is test-test-test. If you can do a test migration with your own member account that would be a great start. and if you share a link to your staging domain (or live domain) I can create an account to help test as well.

    So in summary, let us know how we can be most helpful and we'll do what we can!

    0
  • Dominic Ewer
    Dominic Ewer OP

    Hey Duncan

    No problem at all, I completely understand. If you wouldn’t mind testing with an account, that would be amazing, really appreciate it.
    The live URL is: virtualthreads.io
    Thanks again for all the help!

    0
  • Duncan from Memberstack
    Duncan from Memberstack

    Not a bug or issue, but I would put the google auth button above your email/password. We saw a 10-20% increase in sign ups when we make google the first choice.

    Do you want this success message to appear when submitting the profile form?

    Okay now I see it didn't save.

    Not exactly sure how this is setup, but you'll want to add data-ms-form="profile" to that

    element. and data-ms-member="CUSTOM_FIELD_ID" to each input.

    Sign up and checkout both worked without any issues.

    I would remove this line. "see Memberstack’s account settings for details."

    clicking back from the billing portal sent me to the wrong page... I think this is because you need to set a  postSuccessUrl in Stripe.

    1. In the left sidebar, clickSettings(:gear:).
    2. Under Billing, selectCustomer portal.
    • Enable the Post-Success Redirect:
    1. Scroll down to the Redirects section.
    2. Enable the toggle for After successful payments or portal updates, redirect customers to a custom page.
    • Enter your desired URL in theURL to redirect tofield. For example:
    1. https://www.virtualthreads.io/dashboard
    • Save Your Changes:
    • Click Save at the bottom of the page to apply your settings.

    that last one might be a bug on our end caused by the #profile-information... I asked Tyler.

    I'll continue reviewing once I hear back from you. Want to make sure I'm giving helpful feedback 🙏

    0
  • Dominic Ewer
    Dominic Ewer OP

    Hi Duncan, thank you very much for the detailed feedback, just going through your points now 🙌

    Yes that success message is not appropriate for that form on the dashboard, and I also see the user input details are not saving. I’ll update inline with your suggest or maybe remove the option as I have not integrated the user names anywhere else in the app. 

    I can’t seem to reproduce this issue “clicking back from the billing portal sent me to the wrong page”, which page did it send you to? I’ll have a look at those stripe settings.

    Thank you again mate! It’s super helpful 🙏

    Got a biiig update coming so trying to stabilise everything after the migration before changing things up again 😃

    0
  • Duncan from Memberstack
    Duncan from Memberstack

    I can’t seem to reproduce this issue “clicking back from the billing portal sent me to the wrong page”, which page did it send you to? I’ll have a look at those stripe settings.

    I can only break it if I click "billing" then to stripe and then back. I reported it as a bug to the engineering team 👍

    Got a biiig update coming so trying to stabilise everything after the migration before changing things up again

    Exciting!! Can't wait to see it 😁  And feel free to tag me when you're ready for more testing

    0
  • A J
    A J

    +1 to what Duncan said and Dominic Ewer that's an awesome hero section on the homepage 🥳

    0
  • Dominic Ewer
    Dominic Ewer OP

    Thank you A J!!

    0
  • Duncan from Memberstack
    Duncan from Memberstack

    Same A J No joke, when I saw the hero section my first thought was "damn... the memberstack hero needs to be this good" and I added it to my list for next week 🤣

    0
  • A J
    A J

    Exactly my thought 😂💯 Sooo cool!

    0

Please sign in to leave a comment.

Sitemap