Skip to content

Commit

Permalink
another update
Browse files Browse the repository at this point in the history
Signed-off-by: viste <[email protected]>
  • Loading branch information
Viste committed Aug 20, 2024
1 parent 10de3ad commit c126563
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def setup_routes(app, oauth):
client_id=Config.VK_CLIENT_ID,
client_secret=Config.VK_CLIENT_SECRET,
authorize_url='https://id.vk.com/authorize',
access_token_url='https://id.vk.com/oauth2/token',
access_token_url='https://id.vk.com/token',
client_kwargs={
'scope': 'email',
'token_endpoint_auth_method': 'client_secret_post',
Expand Down Expand Up @@ -153,11 +153,10 @@ def authorize_vk():
return redirect(url_for('login'))

resp = vk.get(
'https://api.vk.com/method/users.get',
'https://id.vk.com/oauth2/user_info',
params={
'access_token': access_token,
'v': '5.131',
'fields': 'id,first_name,last_name,screen_name,photo_100,email'
'client_id': Config.VK_CLIENT_ID
}
)

Expand Down

0 comments on commit c126563

Please sign in to comment.