I am using Google API PHP Client. And every time i try to login I am forced to grant permissions to the apps.
Below is my code. I am basically accessing Google API for
By Setting
$client->setApprovalPrompt('auto');
It will automatically redirect if the account has access to the apis. By Default its 'force'