diff --git a/src/Management/Account.php b/src/Management/Account.php index a7943e7..d92a743 100644 --- a/src/Management/Account.php +++ b/src/Management/Account.php @@ -228,15 +228,16 @@ public function revokeAllTokens(string $accountId, ?string $keepAccessToken = nu * * @see https://developer.nylas.com/docs/api/v2/#post-/a/client_id/accounts/id/token-info * - * @param string $accountId + * @param string $accountId * @param ?string $accessToken * * @return array * @throws GuzzleException */ - public function returnTokenInformation(string $accountId, string $accessToken = null): array + public function returnTokenInformation(string $accountId, ?string $accessToken = null): array { $params = empty($accessToken) ? [] : ['access_token' => $accessToken]; + return $this->options ->getSync() ->setPath($this->options->getClientId(), $accountId)