o
    i                     @   s8   d dl Z d dlmZ d dlmZ d dlmZ dd ZdS )    N)console)PIPECAT_CLI_NAME)configc                    s   t   fdd}|S )Nc                     sH   t d}t d}|d u s|d u rtdt d d S  | i |S )Norgtokenz#You are not logged in. Please run `z auth login` first.)r   getr   errorr   )argskwargsr   r   func R/home/ubuntu/.local/lib/python3.10/site-packages/pipecatcloud/_utils/auth_utils.pywrapper   s   


zrequires_login.<locals>.wrapper)	functoolswraps)r   r   r   r   r   requires_login   s   
r   )r   !pipecatcloud._utils.console_utilsr   pipecatcloud.clir   pipecatcloud.cli.configr   r   r   r   r   r   <module>   s
   