Skip to content

Commit

Permalink
correction in Exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
pravesh-a committed May 7, 2020
1 parent 5658154 commit 4592da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oauth/ZohoOAuthClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function getUserEmailIdFromIAM($accessToken)
$apiResponse = $connector->get();
$jsonResponse = self::processResponse($apiResponse);
if(!array_key_exists("Email", $jsonResponse)){
throw new ZohoOAuthException("Exception while fetching UserID from grant token, Make sure AAAserver.profile.Read scope is included while generating the Grant token " . $jsonResponse);
throw new ZohoOAuthException("Exception while fetching UserID from access token, Make sure AAAserver.profile.Read scope is included while generating the Grant token " . $jsonResponse);
}
return $jsonResponse['Email'];
}
Expand Down

0 comments on commit 4592da2

Please sign in to comment.