I\'ve nearly searched every result of the first page of google for this. But can\'t seem to find the answer. I\'m working with a refresh_token by Google\'s API and receiving
The function that worked for me is as follows
$client->setAccessType("refresh_token");