Skip to content

Commit

Permalink
Update GoogleCloudPrint.php
Browse files Browse the repository at this point in the history
  • Loading branch information
gogl92 authored Sep 1, 2018
1 parent 367e422 commit 3a208f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions GoogleCloudPrint.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ public function getAccessTokenByRefreshToken()
'client_secret' => $this->client_secret,
'grant_type' => $this->grant_type
);
return $this->getAccessToken(self::REFRESHTOKEN_URL, $refreshTokenConfig)->access_token;
$responce = $this->getAccessToken(self::REFRESHTOKEN_URL, $refreshTokenConfig);
if(isset($responce->access_token)) return $responce->access_token;
return "";
}


Expand Down Expand Up @@ -490,4 +492,4 @@ public function checkRefreshTokenSession($redirectUrl){



}
}

0 comments on commit 3a208f4

Please sign in to comment.