diff --git a/src/Credentials/UserRefreshCredentials.php b/src/Credentials/UserRefreshCredentials.php index c81ff9478..4e0b1bbbe 100644 --- a/src/Credentials/UserRefreshCredentials.php +++ b/src/Credentials/UserRefreshCredentials.php @@ -43,7 +43,7 @@ class UserRefreshCredentials extends CredentialsLoader * @param array $jsonKey JSON credentials. * * @param string $jsonKeyPath the path to a file containing JSON credentials. If - * jsonKeyStream is set, it is ignored. + * jsonKey is set, it is ignored. */ public function __construct( $scope, diff --git a/src/OAuth2.php b/src/OAuth2.php index 47cda0d0a..57dde8a3b 100644 --- a/src/OAuth2.php +++ b/src/OAuth2.php @@ -713,7 +713,7 @@ public function getGrantType() // Returns the inferred grant type, based on the current object instance // state. - if (!is_null($this->code) && !is_null($this->redirectUri)) { + if (!is_null($this->code)) { return 'authorization_code'; } else if (!is_null($this->refreshToken)) { return 'refresh_token';