o
    ©D®fV  ã                   @   s   d dl mZ 		ddd„ZdS )é    )Úadd_params_to_qsNc                 C   sF   d| fg}|r|  d|f¡ t|pd|ƒ}|du ri }d|d< ||fS )aq  Construct request body and headers for revocation endpoint.

    :param token: access_token or refresh_token string.
    :param token_type_hint: Optional, `access_token` or `refresh_token`.
    :param body: current request body.
    :param headers: current request headers.
    :return: tuple of (body, headers)

    https://tools.ietf.org/html/rfc7009#section-2.1
    ÚtokenÚtoken_type_hintÚ Nz!application/x-www-form-urlencodedzContent-Type)Úappendr   )r   r   ÚbodyÚheadersÚparams© r
   úZ/home/ubuntu/webapp/venv/lib/python3.10/site-packages/authlib/oauth2/rfc7009/parameters.pyÚprepare_revoke_token_request   s   
r   )NNN)Úauthlib.common.urlsr   r   r
   r
   r
   r   Ú<module>   s    ÿ