Skip to content

Commit b1017ac

Browse files
alekolegflovilmart
authored andcommitted
Send version for Vkontakte API (#4725)
1 parent ebf65bf commit b1017ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/Auth/vkontakte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var logger = require('../../logger').default;
1010
function validateAuthData(authData, params) {
1111
return vkOAuth2Request(params).then(function (response) {
1212
if (response && response.access_token) {
13-
return request("api.vk.com", "method/secure.checkToken?token=" + authData.access_token + "&client_secret=" + params.appSecret + "&access_token=" + response.access_token).then(function (response) {
13+
return request("api.vk.com", "method/secure.checkToken?token=" + authData.access_token + "&client_secret=" + params.appSecret + "&access_token=" + response.access_token + "&v=5.59").then(function (response) {
1414
if (response && response.response && response.response.user_id == authData.id) {
1515
return;
1616
}

0 commit comments

Comments
 (0)