Ok, I followed your procedure and got reconnected. I tested that on my staging environment. After that, I went through the process to test if everything is okay and I potentially found what’s throwing those “invalid_grant” errors.
Bear with me as I explain how I used Patreon plugin and maybe you’ll be able to help me fix it.
I created a sign up page. On that page I have my Patreon Tiers explained and 3 sign up buttons:
I wanted these buttons to work just as the Become a Patron buttons that put users directly into the Patreon checkout process. But I additionally wanted users to be redirected to a Thank You Page (actually to 3 different thank you pages so I could track the conversion). I couldn’t figure out how to do the redirection - there is only this in the Become a Patreon link:
redirect_uri=https%3A%2F%2Feslbrains.com%2Fpatreon-authorization%2F&state=
so no exact parameter (at least for me) to point where a user should be redirected.
So I came up with an (ugly) hack :). I generated a “Become a Patron” button on those Thank You Pages, copied the links and put those links in the buttons on my sign up page. Obviously, I removed those Become a Patron buttons from my Thank You Pages. When I tested it on my staging everything worked perfectly, i.e I could use the buttons on my sign up page, go through the checkout and then get redirected to a thank you page on my site and be automatically logged in.
Now, when I was testing the sign up process after reconnecting my staging environment according to your procedure, I found out that the process works up to the point of logging into my website, i.e. I could use the button on the sign up page, create account and get redirected to a Thank You page but I wasn’t automatically logged in (even though I click “allow” on the screen below).

Instead when I got redirected to the Thank You Page I get this in URL:
http://test.eslbrains.com/thank-you5/?patreon_message=patreon_cant_login_api_error&patreon_error=invalid_grant
This only happens when using the buttons on my sign up page. Everything works okay when I use the Become a Patron button on any post with locked content:
So the above happens now on my staging environment. Just to test I created 2 accounts to be sure. I figured that’s why I have errors on my production environment but when I tested the process on my production env today, it worked perfectly. I tested it only with one of the buttons because otherwise I’d have to create 2 more accounts.
Side note: It’s ridiculous and frustrating that we can’t have some tests users as creators and instead I need to pledge and create dummy users tied to my credit card account any time I want to test something
Now, my question is why I’m getting this “invalid_grant” errors on production. I hope my explanations helped clarify the case. I can only suspect that one of those 3 sign up buttons is throwing this error (I just tested one of them on production). I can test that if necessary but I don’t get new Patrons every 5 mins and my logs look like that:
All in all, I’d like to know why I see those errors and how my users are affected by it
Oz, help 