Please make sure that you've gone through the steps in our
Google application setup guide
. Generally this error is caused by the application being configured incorrectly. One of the most common causes of this error is the "Authorized redirect URIs" being set incorrectly, so make sure they're in the format from the guide.
Also, could you provide a URL where we can see this behavior in action? It's often helpful to look at the network calls being made to debug the problem.
-Melissa