Skip to content

Commit 65acb43

Browse files
authored
Fix vk auth (#506)
Added new param to method auth.getOauthToken auth_user_hash
1 parent 77b5a0d commit 65acb43

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vk_api/vk_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,12 @@ def _api_login(self):
488488
if connect_data['type'] != 'okay':
489489
raise AuthError('Unknown API auth error')
490490
auth_token = connect_data['data']['access_token']
491+
auth_user_hash = connect_data['data']['auth_user_hash']
491492
response = self.http.post(
492493
'https://api.vk.com/method/auth.getOauthToken',
493494
{
494495
'hash': return_auth_hash,
496+
'auth_user_hash': auth_user_hash,
495497
'app_id': self.app_id,
496498
'client_id': self.app_id,
497499
'scope': self.scope,

0 commit comments

Comments
 (0)