
    Kjh                     b    d dl mZmZ d dlmZmZ d dlZdZdZ ed      Z	 ee	      fdefd	Z
y)
    )DependsHTTPException)
HTTPBearerHTTPAuthorizationCredentialsNyour_secret_keyHS256T)
auto_errorcredentialsc                     | j                   }	 t        j                  |t        t        g      }|d   S # t        j
                  $ r t        dd      t        j                  $ r t        dd      w xY w)N)
algorithmssubi  zToken expired)status_codedetailzInvalid token)r
   jwtdecode
SECRET_KEY	ALGORITHMExpiredSignatureErrorr   InvalidTokenError)r
   tokenpayloads      ;C:\Python312\panapi\aramax_api\app\services\token_helper.pyverify_jwt_tokenr   
   sq    ##EE**UJI;Gu~$$ EODD   EODDEs
   %4 A A4)fastapir   r   fastapi.securityr   r   r   r   r   securityr        r   <module>r      s9    * E 

	&AHAR E"> Er   