I might be late to the discussion, but I faced a similar issue recently. In my case, the problem occurred after I installed Discourse and integrated it with Google Sign-In. Initially, everything worked fine, but I later deleted the original droplet (server instance) and reinstalled Discourse.
During the reinstallation, I reused the same Google API credentials for the integration, which led to the error message:
“Sorry, there was an error authorizing your account.”
After some troubleshooting, I realized that the issue was with the reused credentials. To resolve this, I created a new set of Google API credentials for the integration. Once I updated the configuration with these new credentials, everything started working perfectly!