We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92610f9 commit be9167dCopy full SHA for be9167d
src/VKID/Provider.php
@@ -56,7 +56,7 @@ protected function getUserByToken($token)
56
$response = $this->getHttpClient()->post('https://id.vk.ru/oauth2/user_info', [
57
RequestOptions::HEADERS => ['Accept' => 'application/json'],
58
RequestOptions::FORM_PARAMS => [
59
- 'access_token' => $token,
+ 'access_token' => is_array($token) ? $token['access_token'] : $token,
60
'client_id' => $this->clientId,
61
],
62
]);
0 commit comments