
    )JfV                         d dl mZ d dlmZmZmZ ddlmZ g dZ G d de          Z	 ej
        e	          Z ej
        e	          ZdS )	    )get_adapter)OAuth2AdapterOAuth2CallbackViewOAuth2LoginView   )
VKProvider)
first_name	last_namenicknamescreen_namesexbdatecitycountrytimezonephotophoto_medium	photo_bigphoto_max_orig
has_mobilecontacts	educationonlinecountersrelation	last_seenactivityuniversitiesc                   .    e Zd Zej        ZdZdZdZd Z	dS )VKOAuth2Adapterz!https://oauth.vk.com/access_tokenzhttps://oauth.vk.com/authorizez#https://api.vk.com/method/users.getc                    |d                              d          }d|j        d                    t                    d}|r||d<   t	                                                                           | j        |          }|                                 |                                d         d         }|d                              d	          }	|	r|	|d	<   | 	                                
                    ||          S )
Nresponseuser_idz5.95,)vaccess_tokenfieldsuser_ids)paramsr   email)gettokenjoinUSER_FIELDSr   get_requests_sessionprofile_urlraise_for_statusjsonget_providersociallogin_from_response)
selfrequestappr,   kwargsuidr)   resp
extra_datar*   s
             k/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/allauth/socialaccount/providers/vk/views.pycomplete_loginzVKOAuth2Adapter.complete_login+   s    Z $$Y//!Khh{++
 

  	%!$F:}}1133778HQW7XXYY[[,Q/
z"&&w// 	("'Jw  ""<<WjQQQ    N)
__name__
__module____qualname__r   idprovider_idaccess_token_urlauthorize_urlr0   r=    r>   r<   r    r    %   s?        -K:4M7KR R R R Rr>   r    N)allauth.socialaccount.adapterr   ,allauth.socialaccount.providers.oauth2.viewsr   r   r   providerr   r.   r    adapter_viewoauth2_loginoauth2_callbackrF   r>   r<   <module>rM      s    5 5 5 5 5 5          !            4R R R R Rm R R R0 ,+O<<1$1/BBr>   