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
You'll get an "invalid_grant" error if you try to refresh when the token isn't expired.
Instead of this:
$client->refreshToken(file_get_contents('../_config/refreshtoken.conf'));
Use this:
$client->setAccessToken(file_get_contents('../_config/refreshtoken.conf'));
Once your token expires you refresh should work.