In my case, I had to replace "&approval_prompt=auto" with "&prompt=consent", otherwise Google would display a parameter conflict.
In PHP:
$auth_url = $client->createAuthUrl();
$auth_url = str_replace('approval_prompt=auto', 'prompt=consent', $auth_url);