o
    õÁhé  ã                   @   sH   d dl mZmZmZ ddlmZ G dd„ deƒZe e¡Ze e¡Z	dS )é    )ÚOAuth2AdapterÚOAuth2CallbackViewÚOAuth2LoginViewé   )ÚNotionOAuth2Clientc                   @   s(   e Zd ZdZdZeZdZdZdd„ Z	dS )ÚNotionOAuth2AdapterÚnotionTz)https://api.notion.com/v1/oauth/authorizez%https://api.notion.com/v1/oauth/tokenc                 K   s   |   ¡  ||d ¡S )NÚresponse)Úget_providerÚsociallogin_from_response)ÚselfÚrequestÚappÚtokenÚkwargs© r   úc/var/www/html/pos/venv/lib/python3.10/site-packages/allauth/socialaccount/providers/notion/views.pyÚcomplete_login   s   ÿz"NotionOAuth2Adapter.complete_loginN)
Ú__name__Ú
__module__Ú__qualname__Úprovider_idÚ
basic_authr   Úclient_classÚauthorize_urlÚaccess_token_urlr   r   r   r   r   r   
   s    r   N)
Ú,allauth.socialaccount.providers.oauth2.viewsr   r   r   Úclientr   r   Úadapter_viewÚoauth2_loginÚoauth2_callbackr   r   r   r   Ú<module>   s
    
