Closed unbreak closed 10 months ago
At $this->redirect($auth_url);
you can redirect to any URL you wish to. Consider saving the URL and redirecting to it.
@vishwarajanand I don't think you fully understood what the problem was. The $this->redirect($auth_url)
element redirects the user to the Google Account login address generated by Google Client. After logging in, the user, instead of returning to the application to the link set via $client->setRedirectUri($url)
, is redirected to the website myaccount.google.com
Your comment not resolve the problem.
My Application was working fine, but few weeks ago after logging in via Google account, the application suddenly started redirecting to myaccount.google.com instead of the address provided as redirectUri: