I'm using the Google APIs Client Library for PHP for offline authentication, but when I use this code:
$this->google->refreshToken($result["google_refresh_token"]));
it returns NULL.
$this->google
refers to an instance of the Google_Client class.
Anyone an idea what this could be?
If I try to change the given refresh token it returns a Google Exception Error, so it should be a valid token.
Thank you!
Edit:
'client_id' => 'myclientid',
'client_secret' => 'myclientsecret',
'redirect_uri' => 'mypage',
'developer_key' => 'mydeveloperkey',
// Other parameters.
'access_type' => 'offline',
'approval_prompt' => 'force',
Maybe this helps you