Usually, Google OAuth2.0 mechanism is working great.
I recently experienced this weird error. My fix: I put the function that unsets all of the sessions before redirecting to AuthUrl.