I have seen that error message when the URL that has been added to the ‘Authorized Redirect URI’ section on Google is incorrect. It should be set to
https://forum.example.com/auth/google_oauth2/callback
Replace forum.example.com with your site’s domain.