
    f)                     Z    d dl mZ d dlmZ d dlmZ  G d de      Z G d de      ZegZy)	    )ProviderAccount)BitlyOAuth2Adapter)OAuth2Providerc                       e Zd Zd Zd Zy)BitlyAccountc                 L    | j                   j                  j                  d      S )Nprofile_urlaccount
extra_datagetselfs    i/var/www/cs2snipe.com/venv/lib/python3.12/site-packages/allauth/socialaccount/providers/bitly/provider.pyget_profile_urlzBitlyAccount.get_profile_url   s    ||&&**=99    c                 L    | j                   j                  j                  d      S )Nprofile_imager
   r   s    r   get_avatar_urlzBitlyAccount.get_avatar_url
   s    ||&&**?;;r   N)__name__
__module____qualname__r   r    r   r   r   r      s    :<r   r   c                   (    e Zd ZdZdZeZeZd Z	d Z
y)BitlyProviderbitlyBitlyc                     t        |d         S )Nlogin)strr   datas     r   extract_uidzBitlyProvider.extract_uid   s    4=!!r   c                 @    t        |d   |j                  d            S )Nr   	full_name)usernamename)dictr   r!   s     r   extract_common_fieldsz#BitlyProvider.extract_common_fields   s    T']+1FGGr   N)r   r   r   idr'   r   account_classr   oauth2_adapter_classr#   r)   r   r   r   r   r      s"    	BD M-"Hr   r   N)	$allauth.socialaccount.providers.baser   +allauth.socialaccount.providers.bitly.viewsr   /allauth.socialaccount.providers.oauth2.providerr   r   r   provider_classesr   r   r   <module>r1      s2    @ J J<? <
HN 
H "? r   