Skip to content

Commit be9167d

Browse files
Added support for access token of string type (#1390)
1 parent 92610f9 commit be9167d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VKID/Provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function getUserByToken($token)
5656
$response = $this->getHttpClient()->post('https://id.vk.ru/oauth2/user_info', [
5757
RequestOptions::HEADERS => ['Accept' => 'application/json'],
5858
RequestOptions::FORM_PARAMS => [
59-
'access_token' => $token,
59+
'access_token' => is_array($token) ? $token['access_token'] : $token,
6060
'client_id' => $this->clientId,
6161
],
6262
]);

0 commit comments

Comments
 (0)